I've not had an issue with performance of the I/O but here's a technique for squeezing a little more speed out of the ports without having significant code changes.
http://www.codeproject.com/Articles/732646/Fast-digital-I-O-for-Arduino
I've not had an issue with performance of the I/O but here's a technique for squeezing a little more speed out of the ports without having significant code changes.
http://www.codeproject.com/Articles/732646/Fast-digital-I-O-for-Arduino
This looks nice until you see things like recent changing from Raspberry Pi to a Pi 2 and the library breaks! Too many folks here would not know what to do, except for some of the hard core type. I have not checked, but would guess the Arduino has ports mapped differently depending on the chips also.
Pass,
Clem
Clem Martins wrote:
This looks nice until you see things like recent changing from Raspberry Pi to a Pi 2 and the library breaks! Too many folks here would not know what to do, except for some of the hard core type.
Raspbian moved the peripheral base address from 2000.0000 to 3F00.0000. It's probably hard-coded to 2000.0000 in most libraries.
Here's a discussion at RasPi Forum: http://www.raspberrypi.org/forums/viewtopic.php?f=33&t=98740
The RasPi GPIO Wiki hasn't been updated with the new value. For that matter, it hasn't been updated completely for RasPi A+/B+ and RasPi 2. Sic semper wikis. http://elinux.org/RPi_Low-level_peripherals
Clem Martins wrote:
This looks nice until you see things like recent changing from Raspberry Pi to a Pi 2 and the library breaks! Too many folks here would not know what to do, except for some of the hard core type.
Raspbian moved the peripheral base address from 2000.0000 to 3F00.0000. It's probably hard-coded to 2000.0000 in most libraries.
Here's a discussion at RasPi Forum: http://www.raspberrypi.org/forums/viewtopic.php?f=33&t=98740
The RasPi GPIO Wiki hasn't been updated with the new value. For that matter, it hasn't been updated completely for RasPi A+/B+ and RasPi 2. Sic semper wikis. http://elinux.org/RPi_Low-level_peripherals