Skip to content

Instantly share code, notes, and snippets.

@sommersoft
sommersoft / 128_REPL_Max_2
Created March 20, 2018 06:06
128_REPL_Max_2
## Continuation from 128_REPL_Max 1 ##
## https://gist.github.com/sommersoft/fbfe8acae76589256f874fe63f697660 ##
## started this capture already at '>>>' (see first usb_rx_buf_tail == 70, with usb_rx_count == 64...difference of 6)
---------------------------------------------------------------------------------------------------------------------
x = "Testing 128 character pasting into the REPL to see if 3.0 still breaks when you try to do this. Blah blah, bleh bleh and st
read_complete(_usb_d_cb_trans_done):: usb_rx_count: 0; pending_read: true #<-- first ep xfer of 64bytes
## PulseIn High Freq Test ##
# PulseIn script #
# Run on an ItsyBitsy M0 Express #
import time
import pulseio
import board
print("Starting PulseIn...")
## PulseIn High Freq Test ##
# PWMOut script #
# Run on a Feather M0 Express #
import time
import pulseio
import board
interval = 20
cur_hrz = 8000 # Hertz
@sommersoft
sommersoft / FrequencyIn_MK134
Last active May 20, 2018 17:56
FrequencyIn_MK134
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Michael Schroeder
*
* 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
@sommersoft
sommersoft / FrequencyIn_NVIC_Fail_Graceful
Created May 25, 2018 17:52
FrequencyIn_NVIC_Fail_Graceful
static uint8_t MAX_FREQUENCY = CONF_CPU_FREQUENCY / 512000;
void frequencyin_interrupt_handler(uint8_t index) {
Tc* tc = tc_insts[index];
if (!tc->COUNT16.INTFLAG.bit.MC0) return; // false trigger
pulseio_frequencyin_obj_t* self = active_frequencyins[index];
// since we use EVACT.PPW, the Period is put into the CC[0] register
// and that's all we need. CC[1] will contain the Pulse Width.
@sommersoft
sommersoft / new_daily
Created April 30, 2019 14:26
Shortened daily report
(.env) ~/Dev/adabot/adabot:$> python3 -m adabot.circuitpython_libraries
Running CircuitPython Library checks...
Report Date: 30 April 2019, 09:13AM
- Depth for listing libraries with errors: 5
- Prompts for the GitHub Token are disabled.
Latest pylint is: 2.3.1
Found 161 repos to check.
Found 155 submodules in the bundle.
Running GitHub checks as sommersoft
@sommersoft
sommersoft / rosie_log_1
Created June 6, 2019 04:51
Early log of RosiePi. Building and flashing firmware...test eval is next.
(.env) ~/Dev/rosie_pi/RosiePi:$> rosiepi metro_m4_express cfe24b85322a029758c3376eed2726657397bf33
========================= RosiePi ==========================
Initiating rosiepi...
------------------------------------------------------------
- Date/Time: 05-Jun-2019,23:46:42
- Test commit: cfe24b85322a029758c3376eed2726657397bf33
- Test board: metro_m4_express
============================================================
Connecting to: metro_m4_express
------------------------------------------------------------
@sommersoft
sommersoft / rosie_log_2
Last active June 11, 2019 04:47
RosiePi is now getting down to business...
Now running output and input tests through the raw repl!
========================= RosiePi ==========================
Initiating rosiepi...
------------------------------------------------------------
- Date/Time: 10-Jun-2019,23:39:25
- Test commit: cfe24b85322a029758c3376eed2726657397bf33
- Test board: metro_m4_express
============================================================
Connecting to: metro_m4_express
@sommersoft
sommersoft / rosie_log_3
Created June 16, 2019 02:52
Verifier #5 Is Alive!
========================= RosiePi ==========================
Initiating rosiepi...
------------------------------------------------------------
- Date/Time: 15-Jun-2019,21:27:17
- Test commit: 6d388a34eb909e27acd508dc001ae1fe94a530de
- Test board: metro_m4_express
============================================================
Connecting to: metro_m4_express
------------------------------------------------------------
Connected!
@sommersoft
sommersoft / rosie_log_4
Created June 21, 2019 03:47
Appified! (pretty-formatted here for readability)
(.env) ~/Dev/rosie_app/RosiePiApp/rosieapp:$> python3 run_rosiepi.py 3863a6ab8cffcc684ecb52adb361363503
{
"conclusion": "failure",
"completed_at": "2019-06-21T03:39:53Z",
"output": {
"title": "RosiePi",
"summary": "RosiePi\n=======\nCommit: [3863a](https://github.com/adafruit/circuitpython/commit/3863a6ab8cffcc684ecb52adb361363503)",
"text": "|Board|Result|Summary|\n|:---|:---:|:---|\n|metro_m4_express|failed|Initiating rosiepi...<br>
- Date/Time: 20-Jun-2019,22:39:52<br> - Test commit: 3863a6ab8cffcc684ecb52adb361363503<br>
- Test board: metro_m4_express<br>Connecting to: metro_m4_express<br>Connected!<br>Board info:<br>