Code Monkey home page Code Monkey logo

esp32-snowflake's Introduction

2019 (special) Snowflake thing

ESP32 + SSD1305 Oled (Heltec)

But first, let me show a screenshot:

Prerequistes:

  • RAMDISK mounted at /Volumes/ramdisk[number] Example (8GB ramdisk):
    diskutil erasedisk apfs tempramdisk$RANDOM $(hdiutil attach -nomount ram://$((1024*1024*8)))
    
  • Arduino Application
  • MacOS X (macOS)
  • Heltec ESP32 (v1 and v2 are ok)

Usage:

Run command make to upload and connect to serial device. You can override these variables according to your needs:

  • PORT: /dev/cu.[your_port_name], replace it with your board's
  • BAUD: 115200, match it with the code (for monitoring purposes)
  • BUILD: Temporary build location, you can use mktemp -d
  • ARDUINO: Full path to your arduino binary. Including ./Content/MacOS/Arduino.
compile : compiles sources into `BUILD`.
upload  : compiles then uploads into `PORT`.
monitor : `cat`s device in given `PORT` with `BAUD`.
images  : generate header files from `.bmp` bitmap images.
ss.bmp  : pull screenshot from device.

Explanation of which file do what:

  • snowflake-esp32.ino: ESP32 Application for Arduino.
  • bitmap.h: Bitmap file and BMP format definitions, helper functions.
  • screenshot.cc: Reads 0s and 1s from input and converts them to bitmap with given sizes as arguments.
  • convert.cc: Reads bitmaps BMP files from input and converts them to C array. Note: C array does not have a name, its just HEX body. See snowflake-esp32.ino for example usage.

Credits:


Note: Pulling screenshot from device may 'freeze' screen for a second :)

esp32-snowflake's People

Contributors

spacelatte avatar

Stargazers

 avatar  avatar

Watchers

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