athombv / homey-arduino-library

Homeyduino: connect your Arduino projects with Homey
https://github.com/athombv/com.athom.homeyduino
GNU General Public License v3.0
26 stars 18 forks source link

adding support for arduino uno wifi (rev2) #53

Open Zathrasss opened 3 years ago

Zathrasss commented 3 years ago

Ads support for arduino uno wifi (rev2)

It would how ever be good to check if this doesn't break nano's.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

ymp16 commented 2 years ago

I already developed 2 projects with arduino uno wifi rev2 and it's working very well. We just have to add "AVR_ATmega4809" bords in the homey.h and include the wifiNINA library.

elif defined(__AVR_ATmega4809__)

#include <WiFiNINA.h>
#define CLIENT_TYPE WiFiClient
#define UDP_SERVER_TYPE WiFiUDP
#define TCP_SERVER_TYPE WiFiServer
#define MAXCALLBACKS 10
#define CAN_NOT_STOP_TCP