Skip to content

Instantly share code, notes, and snippets.

@siddacious
siddacious / gist:3183d9269b9cff0b16e5423fa93bdd1a
Created November 4, 2020 06:31
klipper SKR 1.4 Turbo w/ LCD from CR-10 V2; Encoder not working :(
[display]
lcd_type: st7920
cs_pin: EXP1_4
sclk_pin: EXP1_5
sid_pin: EXP1_3
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8
[output_pin beeper]
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement, Advertisement, to_hex
from adafruit_ble.services.nordic import UARTService
import time
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
@siddacious
siddacious / adabot_run.txt
Created July 13, 2020 17:34
An adabot run
Running Arduino Library Checks
Getting list of libraries to check...
{'name': 'TinyLiquidCrystal', 'arduino_version': '1.0.0', 'release': '1.0.1', 'version': '1.0.1', 'needs_release': None, 'needs_actions': True}
{'name': 'SdFat', 'arduino_version': '1.2.1', 'release': '1.2.3', 'version': '1.2.3', 'needs_release': None, 'needs_actions': True}
{'name': 'Adafruit_BLE_PinIO', 'arduino_version': '1.1.1', 'release': '1.1.2', 'version': '1.1.2', 'needs_release': None, 'needs_actions': True}
{'name': 'Adafruit_BMP280_Library', 'arduino_version': '1.0.0', 'release': '2.0.1', 'version': '2.0.1', 'needs_release': None, 'needs_actions': False}
{'name': 'Audio', 'arduino_version': '1.3.1', 'release': '1.3.1', 'version': '1.3.1', 'needs_release': None, 'needs_actions': True}
{'name': 'TinyXML', 'arduino_version': '1.0.0', 'release': '1.0.1', 'version': '1.0.1', 'needs_release': None, 'needs_actions': True}
{'name': 'Adafruit_NAU7802', 'arduino_version': '0.0.1', 'release': '1.0.0', 'version': '1.0.0', 'needs_release': Non
@siddacious
siddacious / ohs2020_badge_flash.txt
Created February 16, 2020 03:45
building/flashing OHS2020 badge
(base) Bryans-MBP:Adafruit_nRF52_Bootloader bs$ make BOARD=ohs2020_badge flash
CC main.c
CC boards.c
CC flash_nrf5x.c
CC dfu_ble_svc.c
CC dfu_init.c
CC nrfx_power.c
CC nrfx_nvmc.c
CC system_nrf52840.c
CC bootloader.c
2-3 types of common statements:
From CP/Debug_I2C:
i2c.writeto_then_readfrom.buffer_out at address 0x77: ['0xd']
i2c.writeto_then_readfrom.buffer_in at address 0x77: ['0x10']
i2c.writeto at address 0x77: ['0xc', '0x89']
From Arduino/BusIO:
I2CDevice Wrote: 0xD,
I2CDevice Read: 0x10,