Coder Social home page Coder Social logo

eink-embedded's Introduction

ESP8266 E-ink Embedded Part

The main file calls these functions

    wifi_init(); // init the wifi module
    GPIO_Init(); // init gpio module
    Init_SPI(); // init spi 
    EPD_Init(); // init eink display (should be called after gpio and spi init)
    mqtt_connect_to_server(); // subscribes to mqtt and publish fetch command (fetch command is one of the custom protocol commands between client and the embedded system) 

in the components folder, you will find the eink folder, which holds the display driver, not all features of the display were written only the one I needed to do the MVP.

in the mqtt_local which was called this because of conflict with the sdk library mqtt, you'll find a hardcoded (should be changed) mqtt topics, starts with device/${current-device-serialnumber}, the serial number is crucial since it is the only way the server can differentiate between the embedded devices. you can also change the mqtt uri, mqtt broker user and password from mqtt_local.c but it would be better if this changes.

you can change wifi ssid and password from wifi.h

Contributing

First, you have to setup ESP8266_RTOS_SDK, just follow the instructions, and make sure you understand the build system before you add code, as it enhance your embedded device performance

to flash code make flash

to flash and monitor make flash monitor

eink-embedded's People

Contributors

tareqrafed 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.