Git Product home page Git Product logo

scan-i2c-wifi's Introduction

ESP8266 I2C Scanner with oled display, WS2812 RGB Led and OTA

This is a sample sketch do demonstrate how to use ESP8266 with OLED, I2C Scanner, OTA and OLED Display.

I used it on WeMos shield, you can find more information on WeMos on their site, it's really well documented. I now use WeMos boards instead of NodeMCU's one because they're just smaller, features remains the same, but I also suspect WeMos regulator far better quality than the one used on NodeMCU that are just fake of originals AMS117 3V3.

I'm using it on lot of my boards to test them since I'm often using WS2812B RGB LED, OLED and I2C devices. On this sample. For example in

This project is mainly based on different samples sketches that I merged and adapted.

Documentation

just change in the Scan-I2C-WiFi.ino the definition according to the board you're using and the wiring.

/ ===========================================
// Setup your board configuration here
// ===========================================

// Wifi Credentials
// Leaving * will try to connect with SDK saved credentials
#define MY_SSID     "*******"
#define MY_PASSWORD "*******"

char ssid[33] ;
char password[65];

// I2C Pins Settings
#define SDA_PIN 4
#define SDC_PIN 5

// Display Settings
// OLED will be checked with this address and this address+1
// so here 0x03c and 0x03d
#define I2C_DISPLAY_ADDRESS 0x3c
// Choose OLED Type (one only)
#define OLED_SSD1306
//#define OLED_SH1106

// RGB Led on GPIO0 comment this line if you have no LED
#define RGB_LED_PIN 0
// 2 LEDs
#define RGB_LED_COUNT 2
// Comment if you have only RGB LED and not RGBW led 
#define RGBW_LED 

Dependencies

  • Arduino ESP8266 environement
  • @squix78 for excellent OLED library
  • @Makuna for no less excellent RGB Led library called NeoPixelBus library

Running sketch Video

Here a little video (sorry for the quality, just took with my iPhone 5) of rendering

ESP8266 I2C WiFi scanner

Misc

See news and other projects on my blog

scan-i2c-wifi's People

Contributors

hallard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.