Arduino Duemilanove (Deutsch)

From Ethersex_Wiki
Revision as of 13:19, 12 August 2014 by Coffee (talk | contribs) (i18n Leiste)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Der Support für den Arduino Duemilanove ist noch experimentell!


Named Pin Konfiguration

Hier die passende core/portio/config für Named_PIN

  • Named Pin muss aktiviert sein!
#
#   Named Pin Configuration File
#
# You can assign names to your microcontroller's pins here.
# Keep in mind that this names must consist of alphanumeric 
# characters only!
#
# Every line starting with a hash sign (#) is a comment.
#
#
# PIN | IN/OUT | When active? | Name
#-----+--------+--------------+----------------
PD0     OUTPUT   HIGH           p0
PD1     OUTPUT   HIGH           p1
PD2     OUTPUT   HIGH           p2
PD3     OUTPUT   HIGH           p3
PD4     OUTPUT   HIGH           p4
PD5     OUTPUT   HIGH           p5
PD6     OUTPUT   HIGH           p6
PD7     OUTPUT   HIGH           p7
PB0     OUTPUT   HIGH           p8
PB1     OUTPUT   HIGH           p9
PB2     OUTPUT   HIGH           p10
PB3     OUTPUT   HIGH           p11
PB4     OUTPUT   HIGH           p12
PB5     OUTPUT   HIGH           p13
PC0     INPUT    HIGH           a1
PC1     INPUT    HIGH           a2
PC2     INPUT    HIGH           a3
PC3     INPUT    HIGH           a4
PC4     INPUT    HIGH           a5
PC5     INPUT    HIGH           a6

Control6 Scripte

Einen Einstieg in Control6 gibt es auch auf der Seite für PIN_Commands

Beispiel für ein Control6 mit Named Pin

  • Script unter control6/control6.src
  • control6 muss aktiviert sein!
  • Named_Pin muss aktiviert sein!
THREAD(arduino_blink)
 PIN_CLEAR(p13);
 WAIT(1);
 PIN_SET(p13);
 WAIT(1);
THREAD_END(arduino_blink)
THREAD_START(arduino_blink)

Beispiel ohne Named Pin

  • Script unter control6/control6.src
THREAD(arduino_blink)
 PORTB &= ~_BV(PB5);
 WAIT(1);
 PORTB |= _BV(PB5);
 WAIT(1);
THREAD_END(arduino_blink)
THREAD_START(arduino_blink)