Skip to content

Instantly share code, notes, and snippets.

View marchingband's full-sized avatar

Andrew March marchingband

View GitHub Profile
download Bouffalo Lab Dev Cube here: https://dev.bouffalolab.com/download
toolchain installation guide here: https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/linux_wsl.html
Complete steps to install toolchain that worked for me, on a Windows machine running Debian WSL:
In WSL Debian terminal:
cd ~
sudo apt install git make ninja-build -y
git clone https://gitee.com/bouffalolab/bl_mcu_sdk
mv bl_mcu_sdk bouffalo_sdk
Overkill Solar does not collect any user data, of any kind, for any reason, at any time.

I forked esp-idf on github, then in an ubuntu terminal :

git clone https://github.com/marchingband/esp-idf
git checkout release/v4.4
git apply {local-path-to-the-patch}
git add . && git commit -m"apply eMMC patch" && git push origin release/v4.4
sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache jq
sudo pip install --upgrade pip
git clone https://github.com/espressif/esp32-arduino-lib-builder
cd esp32-arduino-lib-builder

import {useStore, keys} from './useStore.js'
const ColoredTextBox = () => {
const [{text, color}, actions] = useStore([keys.text, keys.color])
return(
<div
style={{backgroundColor:color}}
onClick={()=>actions.setColor(color=='red'?'green':'red')}
>
{text}
import { createStore, getKeys, emit } from './createStore.js'
const store = {
color: 'red',
text: 'default text',
todos: [
'make an async store',
'publish medium article'
],
loading: false
import { useState, useEffect } from 'react'
var store = {}
var actions = {}
var listeners = {}
export const emit = keys => {
// for each key that needs its listeners called
flat(keys).forEach(key=>{
// for each listener in that array