Skip to content

Instantly share code, notes, and snippets.

View tannewt's full-sized avatar

Scott Shawcroft tannewt

View GitHub Profile
diff --git a/src/main/config/config.c b/src/main/config/config.c
index 6117f92..b8cc59d 100755
--- a/src/main/config/config.c
+++ b/src/main/config/config.c
@@ -704,7 +704,7 @@ void createDefaultConfig(master_t *config)
}
#endif
-
+
@tannewt
tannewt / mylog.txt
Created May 5, 2017 18:51
Heap log of CircuitPython when the stack top isn't quite right.
Breakpoint 1 at 0x237c6: file ../py/gc.c, line 110.
Breakpoint 1, gc_log_change (start_block=0, length=2) at ../py/gc.c:110
110 change_me += start_block;
#0 gc_log_change (start_block=0, length=2) at ../py/gc.c:110
#1 0x0001b940 in gc_alloc.constprop.117 (n_bytes=<optimized out>, has_finaliser=false) at ../py/gc.c:479
#2 0x00024084 in m_malloc (num_bytes=num_bytes@entry=24) at ../py/malloc.c:75
#3 0x000240e0 in m_malloc0 (num_bytes=24) at ../py/malloc.c:116
#4 0x000078ba in mp_map_init (n=3, map=<optimized out>) at ../py/map.c:79
#5 mp_obj_dict_init (n_args=3, dict=<optimized out>) at ../py/objdict.c:595
@tannewt
tannewt / code.py
Created June 30, 2017 18:07
sdcard test
import adafruit_sdcard
import busio
import digitalio
import board
import storage
import os
import gc
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
cs = digitalio.DigitalInOut(board.D10)
@tannewt
tannewt / code.py
Created August 11, 2017 22:18
analog read/write test
from board import *
from analogio import *
aout = AnalogOut(A0)
d0in = AnalogIn(D0)
def getVoltage(pin):
return (pin.value * 3.3) / 65536
aout.value = 65536 // 3
import time
import pulseio
import board
import adafruit_irremote
from adafruit_circuitplayground.express import cpx
pulsein = pulseio.PulseIn(board.REMOTEIN, maxlen=120, idle_state=True)
decoder = adafruit_irremote.GenericDecode()
# size must match what you are decoding! for NEC use 4
received_code = bytearray(4)
@tannewt
tannewt / 20171228_notes.txt
Created January 5, 2018 06:29
CircuitPython Weekly notes Dec 28th, 2017
Video URL - https://youtu.be/GMJXIFo2HvI
State of CircuitPython + Libraries 3:13
* 21 pull requests merged
* 7 authors - dastels, dhalbert, deanm1278, jerryneedell, kattni, tannewt, ladyada
* 7 reviewers - dhalbert, tdicola, kattni, tannewt, mrmcwethy, ladyada, caternuson
* 3 new PRs, 2 authors - raidancampbell, jerryneedell
* 4 closed issues by 3 people, 5 opened by 4 people
* 11 open pull requests
* https://github.com/adafruit/Adafruit_CircuitPython_SD/pull/4
@tannewt
tannewt / motor_featherwing.py
Created January 5, 2018 19:45
motor featherwing
# The MIT License (MIT)
#
# Copyright (c) 2017 Scott Shawcroft for Adafruit Industries LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@tannewt
tannewt / circuitpython-weekly-20180108-notes.txt
Created January 9, 2018 01:04
Adafruit CircuitPython Weekly 01-08-2018 Notes
CircuitPython weekly held every week on http://adafru.it/discord Mondays at 11am Pacific / 2pm Eastern.
Video recording for this meeting is here: https://youtu.be/4QYz0BDKKTI
State of CircuitPython + Libraries 2:00
* 42 pull requests merged
* 9 authors - ladyada, microbuilder, raidancampbell, dhalbert, brentru, tannewt, Sigafoos, mrmcwethy, kattni
* 5 reviewers - ladyada, dhalbert, tannewt, mrmcwethy, kattni
* 4 new PRs, 3 authors - brentru, Sigafoos, tannewt
* 18 closed issues by 8 people, 6 opened by 4 people
@tannewt
tannewt / circuitpython-weekly-20180116-notes.txt
Created January 18, 2018 19:19
CircuitPython Weekly notes for 20180116
Video is available here: https://www.youtube.com/watch?v=a34DH1FSqJc
January 16th, 2018 - 3:00
State of CircuitPython + Libraries
* 18 pull requests merged
* 8 authors - Sigafoos, ladyada, tdicola, brentru, tannewt, mrmcwethy, deshipu, microbuilder
* 6 reviewers - kattni, ladyada, tannewt, dhalbert, mrmcwethy, deshipu
* 13 new PRs, 4 authors - tannewt, sommersoft, microbuilder, dhalbert
* 23 closed issues by 4 people, 12 opened by 5 people
* 13 open pull requests
@tannewt
tannewt / circuitpython-weekyl-20180122.txt
Created January 22, 2018 20:02
CircuitPython weekly 2018-01-22
Video is here: https://youtu.be/T7yrkrdIxsI
State of CircuitPython + Libraries - 2:33
* 20 pull requests merged
* 10 authors - tannewt, mrmcwethy, dhalbert, ladyada, sommersoft, caternuson, microbuilder, tdicola, kattni, Sigafoos
* 5 reviewers - dhalbert, tannewt, ladyada, deshipu, kattni
* 9 new PRs, 4 authors - brentru, tannewt, mrmcwethy, tdicola
* 10 closed issues by 5 people, 10 opened by 6 people
* 14 open pull requests
* https://github.com/adafruit/Adafruit_CircuitPython_DS1307/pull/3