Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: shug on November 03, 2014, 04:35:00 PM

Title: Convert program from Raspberry to A20 (RPI.GPIO)
Post by: shug on November 03, 2014, 04:35:00 PM
Hello,
I need some help to convert a programm (RFID Reader) that works perfectly under Raspberry but use the RP.GPIO library.
I would like to make it work on my A20 (with pyA20).
Could anyone help me ?
thanks
Title: Re: Convert program from Raspberry to A20 (RPI.GPIO)
Post by: blejku on November 03, 2014, 10:28:19 PM
There should not be a problem but you have to know what type of communication using rfid reader . Is this a serial I2C , 1-wire , SPI ..?
Then we can adapt it for the A20 .

Regards.
Title: Re: Convert program from Raspberry to A20 (RPI.GPIO)
Post by: shug on November 03, 2014, 10:53:21 PM
Hello,
of course I didn't get you enough details : it is a spi type of communication (+ reset pin). The chip is the NXP MFRC522.
Code for raspberry pi is here : https://github.com/mxgxw/MFRC522-python

Thanks