Skip to content

Instantly share code, notes, and snippets.

View fbiego's full-sized avatar

Felix Biego fbiego

View GitHub Profile

Flashing BW16 AT Firmware

A simple guide to flashing the AT firmware onto BW16-Kit modules.

Factory Firmware Versions

  • USBC BW16-Kit: at version:release/v2.11.2 sdk version:amebad_v6.2C firmware version:release/v4.9.2

  • MicroUSB BW16: version:v2.4.1,amebaD v6.0a(Aug 14 2019)

@ngxson
ngxson / timezone.js
Last active April 24, 2024 18:52
ESP32Time time offset table
/**
* This file calculates a lookup table for all the day that daylight saving take effect.
* The output file is a hpp file, which can use used in Arduino project.
* If you don't have nodejs on your machine, you can use an online compiler, for example: https://www.tutorialspoint.com/execute_nodejs_online.php
*/
// number of years in the future to generate
const NB_OF_YEARS = 20;
// set the current timezone
@cpicanco
cpicanco / SDL Audio.cpp
Last active November 25, 2024 23:32 — forked from 0x61space/SDL Audio.cpp
SDL simple record and playback
#include <SDL.h>
#include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
#include <sstream>
#include <ctime>
const int MAX_RECORDING_DEVICES = 10;
@sukesh-ak
sukesh-ak / Makerfabs_S3_TFT43.ino
Last active January 25, 2024 15:29
Makerfabs ESP32-S3 4.3" 800x480 Parallel RGB565 TFT with Capacitive Touch
/*
Simple Graph + Touch Drawing sample for Makerfabs ESP32-S3 4.3" 800x480 Parallel RGB565 TFT ( E32S3RGB43 )
Product purchase link : https://bit.ly/42cuRO3
Requirements:
- Development board : Makerfabs ESP32-S3 4.3" 800x480 Parallel RGB565 TFT with Capacitive Touch
- Arduino Library - Display/Touch : LovyanGFX
- Board selected in Arduino : ESP32S3 Dev Module
- PSRAM : OPI PSRAM
*/
@Dhravya
Dhravya / bot.py
Last active October 18, 2023 14:57
A simple twitter bot using Twitter API v2
import pytwitter
from os import environ as env
from dotenv import load_dotenv
load_dotenv() # Loads the .env file we created earlier
api = pytwitter.Api(
consumer_key=env["CONSUMER_KEY"],
consumer_secret=env["CONSUMER_SECRET"],
access_token=env["OAUTH_TOKEN"],
List with Compatible devices:
Look under About on the watch for the device Id.
looks something like this:
MOY-TEH5-1.7.7
the middle section is the interesting part, if that is in this list here
it has the compatible bootloader and the same pinout as pinetime for Display and External Flash
@niquenen
niquenen / toASCII.php
Last active March 28, 2023 13:04
PHP function to replace all characters with an ASCII equivalent.
<?php
/**
* @author niquenen
* @company H2V Solutions
* @created_at 2020-02-18 10:54:10
* @updated_by niquenen
* @updated_at 2022-11-04 15:16:13
*/
@atc1441
atc1441 / UpdateProtocolDafit.txt
Last active December 9, 2025 04:31
DaFit App Update Protocol manual
Basic Manual for DaFit Fitness Tracker firmware update protocol, works for nearly any nRF52832 tracker from Company DaFit
The minimum size of update file is 0x10000(can be filled with garbage to get to size) and the maximum size is 0x2F000
the update will first get stored onto the external flash at position 0x3D1000 by the stock firmware(not by the bootloader)
the size of the update will get stored at 0x3D0000 on external flash with 4 bytes uint32_t
when bootloader gets activated it will copy the update from external flash to 0x23000 of the nRF52 internal flash.
Connect to device,
@anthonyray
anthonyray / kiosk.md
Created September 6, 2019 15:45
Turn your Raspberry Pi into a kiosk playing looping videos

An acquaintance needed a video kiosk that plays looping videos for an exposition booth. Since I have a bunch of Raspberry Pis lying around, I figured that it would be the perfect use case for using one of them.

Let's assume we start from scratch, with a unflashed, brand new SD card and your Raspberry Pi.

Installing the OS

Install a version of Raspbian that includes the desktop. You can head over to : https://www.raspberrypi.org/downloads/raspbian/ and follow the instructions.

Once the image is downloaded, you can burn it to your SD card with tools like Etcher (https://www.balena.io/etcher/)

@miguelmota
miguelmota / util.php
Last active July 31, 2024 09:14
PHP byte array to hex, hex to byte array, string to hex, hex to string utility functions
<?php
function string2ByteArray($string) {
return unpack('C*', $string);
}
function byteArray2String($byteArray) {
$chars = array_map("chr", $byteArray);
return join($chars);
}