Arduino Duemilanove: Unterschied zwischen den Versionen

Aus Ethersex_Wiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: Der Support für den Arduino Duemilanove ist noch experimental hier die passende core/portio/config für Named_PIN # # Named Pin Configuration File # # You ...)
 
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
Der Support für den Arduino Duemilanove ist noch experimental
+
Der Support für den [http://arduino.cc/en/Main/ArduinoBoardDuemilanove Arduino Duemilanove] ist noch experimentell!
  
hier die passende core/portio/config für [[Named_PIN]]
+
 
 +
== Named Pin Konfiguration ==
 +
Hier die passende core/portio/config für [[Named_PIN]]
 +
* Named Pin muss aktiviert sein!
  
 
  #
 
  #
Zeile 35: Zeile 38:
 
  PC4    INPUT    HIGH          a5
 
  PC4    INPUT    HIGH          a5
 
  PC5    INPUT    HIGH          a6
 
  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)
  
  
Zeile 40: Zeile 71:
 
[[Category:Hardware]]
 
[[Category:Hardware]]
 
[[Category:Arduino]]
 
[[Category:Arduino]]
 +
[[Category:Control6]]
 +
[[Category:Control6_Examples]]

Aktuelle Version vom 7. Oktober 2009, 20:41 Uhr

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)