Go Down

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

Paul Stoffregen

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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131