ggurov / hx711

raspberry pi hx711 weight scale interface
56 stars 33 forks source link

Explain fix for Raspberry Pi 2 #9

Open ComSubVie opened 8 years ago

ComSubVie commented 8 years ago

The code wasn't working on a Raspberry Pi 2 since the used Gertboard code (gb_common) uses hard-coded memory addresses to access the GPIOs. And the memory mapping has changed between Pi 1 and Pi 2.

This adds an explanation and adds a correct address (commented out) for the Raspberry Pi 2 to gb_common.c. It also fixes the Makefile to recompile gb_common.c.