Pages: 1 [2]   Go Down
Author Topic: pgmspace.h is not supported?  (Read 9272 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
God Member
*****
Karma: 26
Posts: 608
Always making something...
View Profile
WWW
 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.
Logged

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

Quote
Code:
      //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.
Logged

Pages: 1 [2]   Go Up
Jump to: