X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=avr%2Fnano%2Fmain.c;h=07e1871420dcbc433671656420ac30f6182d8189;hp=78e85316980ef5d067b43a55e2d7c6b89c0f8529;hb=8bf6f432e200f4d3fa494081837915b15015ab65;hpb=cba57a46f758cff1cb49df0b337eac82ab4453f3 diff --git a/avr/nano/main.c b/avr/nano/main.c index 78e8531..07e1871 100644 --- a/avr/nano/main.c +++ b/avr/nano/main.c @@ -28,6 +28,7 @@ * 0x0C Distance forward2 LSB * 0x0D Current MSB * 0x0E Current LSB + * 0x0F Manipulator 12V * * 0x15 Distance forward1 MSB (read only) * 0x16 Distance forward1 LSB (read only) @@ -40,6 +41,33 @@ */ +/** + * Nano Pinout + * A0 PC0/ADC0 + * A1 PC1/ADC1 + * A2 PC2/ADC2 + * A3 PC3/ADC3 + * A4 PC4/ADC4 + * A5 PC5/ADC5 + * A6 ADC6 + * A7 ADC7 + * D0 PD0/RX + * D1 PD1/TX + * D2 PD2/IND0 dist_fwd1 + * D3 PD3/IND1 dist_bwd + * D4 PD4/T0 dist_fwd2 + * D5 PD5/T1 Manipulator 12V + * D6 PD6/AIN0 + * D7 PD7/AIN1 + * D8 PB0/ICP + * D9 PB1/OC1 + * D10 PB2/SS + * D11 PB3/MOSI + * D12 PB4/MISO + * D13 PB5/SCK + */ + + #define TWI_ACK TWCR = (1<