Go Down

Topic: pgmspace.h is not supported? (Read 31521 times) previous topic - next topic


I purchased a couple LCDs from iTead.  It'll probably be 2-3 weeks until I actually get them.


Code: [Select]
      //DB08 on PIN22
      PIO_PB26=(VH & 0x01);

The PIO_PB26 definitions are typical of Atmel, and merely define bitmasks like "(1 << 26)" rather than useful structures that you can assign a value to (this is consistent with things like "PB4" on the AVR, by the way.)
They're in hardware/arduino/sam/system/CMSIS/Device/ATMEL/sam3xa/include/pio/pio_sam3x8e.h
"direct port access" on some ARM chips is not very direct, because the "General purpose IO" peripherals are quite complex.  I haven't read the Atmel manual to see how it works.

Go Up