epsilonrt / piduino

Arduino API on Pi boards, the best of both worlds !
https://epsilonrt.fr/2019/01/piduino/
GNU Lesser General Public License v3.0
29 stars 7 forks source link

Ethernet and Wifi emulation to access the network interfaces of the board pi #11

Open ghost opened 5 years ago

ghost commented 5 years ago

Is it possible to use raspberry pi wifi in Piduino code ? Is it included in the library ?

epsilonrt commented 5 years ago

It depends on what you're talking about. Piduino is intended to provide the same API as the Arduino, so "user" side. On the other hand, the inside of the code linked to the hardware is obviously totally different. For the moment, the Wire and SPI libraries have been ported to Pi board. This should make it possible to use all the network modules connected on SPI bus. I have not yet studied access to network interfaces but I think I would achieve an access class emulating Ethernet and Wifi. For now you can use sockets or one of the C ++ classes available on github.