Code Monkey home page Code Monkey logo

mighty_mite's Introduction

mighty might

Microprocessors for fun.

I'm programming with the LOLIN D1 mini, a super inexpensive, arduino compatible board.

Dev setup

Dev flow

# install the supported python version
pyenv install

# launch the local virtual env
poetry shell

# install the project dependencies
poetry install
# listing devices
tio -L

# set the serial port of the device based on the output of tio -L
export SERIAL=/dev/ttyUSB0 # for linux
export SERIAL=/dev/tty.usbserial-10 # for mac

# connecting to serial
tio $SERIAL
# is the same as:
tio -b 115200 -d 8 -f none -s 1 -p none $SERIAL
# list all deployed files
ampy --port $SERIAL --baud 115200 ls
# deploy
ampy --port $SERIAL --baud 115200 put src/ .
## Remember to restart the board

Flashing a new chip

curl https://micropython.org/resources/firmware/esp8266-20230426-v1.20.0.bin --output esp8266.bin
esptool.py --port $SERIAL --baud 460800 write_flash --flash_size=detect -fm dout 0 esp8266.bin

chip not showing up?

#remove brltty - 
sudo apt-get purge --auto-remove brltty

unable to connect to serial monitor?

# The initial baud rate of the chip is 74880
# use this rate to see boot messages, usefull if stuck in boot loop
tio -b 74880 -d 8 -f none -s 1 -p none $SERIAL | tee serial.log

Resources

mighty_mite's People

Contributors

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