Skip to content

Instantly share code, notes, and snippets.

View mcauser's full-sized avatar

Mike Causer mcauser

View GitHub Profile
$ make clean && make axtls
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -rf build
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
cd ../lib/axtls; cp config/upyconfig config/.config
cd ../lib/axtls; make oldconfig -B
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C config/scripts/config conf
cp ../../scripts/config/zconf.tab.h_shipped zconf.tab.h
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I. -c ../../scripts/config/conf.c -o conf.o
cp ../../scripts/config/zconf.tab.c_shipped zconf.tab.c
Mikes-MBP-15:micropython mike$ cd mpy-cross
Mikes-MBP-15:mpy-cross mike$ make clean
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
@mcauser
mcauser / gist:d18b1439c0271d8693773033b7279cb8
Created March 8, 2017 05:14
objdump nlrx64.o + PR #2943
Mikes-MBP-15:mpy-cross mike$ make clean
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
Mikes-MBP-15:mpy-cross mike$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/genhdr
@mcauser
mcauser / gist:8312a86491bddcaa262b978d632a1ecd
Created March 8, 2017 05:31
objdump nlrx64.o + PR #2943 v2
Mikes-MBP-15:mpy-cross mike$ make clean
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
Mikes-MBP-15:mpy-cross mike$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/genhdr
@mcauser
mcauser / micropython-esp32-lolin32-osx.txt
Last active May 17, 2017 01:06
micropython-esp32-lolin32-osx
See here for latest tar.gz path: http://esp-idf.readthedocs.io/en/latest/get-started/macos-setup.html
$ mkdir -p ~/esp
$ cd ~/esp
$ wget https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-61-gab8375a-5.2.0.tar.gz
$ tar -xzf xtensa-esp32-elf-osx-1.22.0-61-gab8375a-5.2.0.tar.gz
$ subl ~/.profile
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
$ source ~/.profile
@mcauser
mcauser / gist:8d0e75dfeda0d40c0a57a60a29aa01bf
Created June 20, 2017 08:25
micropython BLACK_F407VE dfu steps
Copy files from https://github.com/mcauser/BLACK_F407VE into micropython/stmhal/boards/BLACK_F407VE
$ cd stmhal
$ make clean
$ make BOARD=BLACK_F407VE
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build-BLACK_F407VE/genhdr
Create build-BLACK_F407VE/genhdr/pins.h
:020000040000FA
:100000000040002081610100BD610100BF6101006D
:1000100000000000000000000000000000000000E0
:10002000000000000000000000000000C1610100AD
:100030000000000000000000C3610100C561010074
:10004000C7610100D95A0100E5650100C7610100DF
:10005000C761010000000000BD9B0100C7610100F5
:10006000F9F00000C7610100C19D0100C7610100F6
:10007000C7610100C7610100C7610100C7610100DC
:10008000C76101003D6B0100C7610100C76101004C
import ustruct
class MAX31855:
"""
Driver for the MAX31855 thermocouple amplifier.
MicroPython example::
Mikes-MacBook-Pro:~ mike$ esptool.py flash_id
esptool.py v2.8
Found 3 serial ports
Serial port /dev/cu.SLAB_USBtoUART
Connecting....
Detecting chip type... ESP32
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:a1:60:74:e5:b0
!blue 0 0
!blue 0 1
!blue 0 2
!blue 0 3
!blue 0 4
!blue 0 5
!blue 0 6
!blue 0 18
!blue 0 19
!blue 0 20