graph TD
imu(Accel + Gyro<br>over I2C) --> imufetch
imufetch[[imu_fetch_task]] --> datalist
datalist[(Data List<br>with lock)]
datalist --> filewrite[[file_write_task]]
filewrite --> localfile[(local file)]
mainstart{main_task<br>loop start}
--> |wait onrecord_start_event| mainspawn(SPAWN tasks1. imu_fetch_task2. file_write_task)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let startdir = pwd | |
if not ('nrf-softdevice' | path exists) { | |
git clone https://github.com/embassy-rs/nrf-softdevice.git | |
} | |
cd ([nrf-softdevice examples] | path join) | |
if not ('uf2conv.py' | path exists) { | |
http get https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2families.json | save uf2families.json | |
http get https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2conv.py | save uf2conv.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# search for 'pub fn' and capture paths, and lines | |
# NOTE: could get line number | |
let tmp = rg --json 'pub fn' | rg '"type":"match"' | from json -o | |
echo ($tmp | each {|m| $m.data}) # debug | |
let df = $tmp | each { | |
|m| { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Embedded Python Blocks: | |
Each time this file is saved, GRC will instantiate the first class it finds | |
to get ports and parameters of your block. The arguments to __init__ will | |
be the parameters. All of them are required to have default values! | |
""" | |
import numpy as np | |
from gnuradio import gr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m mpy_cross wifi_connect.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style> | |
.note_button { | |
background-color: #1f78b4; | |
border: none; | |
color: white; | |
padding: 15px 32px; | |
text-align: center; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder