What settings do i need to use in the Arduino IDETools > Board > Arduino/Genuino Uno
which library do i need for the esp to connect with the wifi and communicate over MQTT?I recommend this library:
Also there are 6 pins on the board were i can choose to use HWSerial or SWSerial, which should i use for my application?That is a tricky question. If you use HWSerial, that will connect the ESP8266 to pins 0 and 1 of the primary ATmega328P microcontroller. This microcontroller has only that one hardware serial port, which is usually used for uploading to the Uno and for communication with Serial Monitor on your computer. So if you use HWSerial it will interfere with uploading to the Uno. You can get around that by disconnecting the ESP8266 long enough for the upload and then connecting it up again. A more serious problem is that any debug Serial output in your code will interfere with communications with the ESP8266. So you can't get any output from your board until you get the ESP8266 working well enough to start sending it over WiFi. For this reason, you might consider using SWSerial along with the SoftwareSerial library to create a serial port for the ESP8266 on different pins. Leaving pins 0 and 1 free for communication with your computer. The problem with this is that the AT firmware of the ESP8266 communicates at 115200 baud by default but SoftwareSerial will not work reliably at that high a speed. So you need to use the appropriate AT command to set the AT firmware to communicate at 9600 baud. There are instructions for that at the link provided by Juraj.
Looking at the .h file for the library I see this functionThanks but it doesn't seem to work, im not a good programmer.Code: [Select]
void setPixel(uint16_t poX, uint16_t poY,uint16_t color);
I did not look any further but it looks as though you can turn a single pixel on/off
void setPixel(uint8_t poX, uint8_t poY,uint8_t color);
setPixel(64, 15, 255)
Can you say the components i' going to use? I will buy them this week.My strong recommendation is NOT to plan to buy all the parts now. Just buy what you need to start learning about using an Arduino. As you gain experience you will be better placed to decide what parts you should get.