Pages: 1 [2]   Go Down
Author Topic: pgmspace.h is not supported?  (Read 9822 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
God Member
Karma: 26
Posts: 625
Always making something...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

SF Bay Area (USA)
Offline Offline
Tesla Member
Karma: 137
Posts: 6792
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

      //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.

Pages: 1 [2]   Go Up
Jump to: