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
// | |
// gzip power test | |
// written by Larry Bank (bitbank@pobox.com) | |
// July 9, 2024 | |
// | |
// This sketch uses my zlib_turbo to compare how much power | |
// is used by a gzip payload vs uncompressed on the Unexpected Maker FeatherS2 | |
// | |
#include <WiFi.h> | |
#include <HTTPClient.h> |
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
/* | |
* Arduino.c | |
* | |
* Created on: Jan 12, 2023 | |
* Author: larry | |
*/ | |
#include "debug.h" | |
#include <stdint.h> | |
#include "Arduino.h" |
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
// | |
// Interactive SPI & GPIO tester | |
// written by Larry Bank | |
// August 14, 2022 | |
// | |
// Purpose: Use the serial terminal to interactively test SPI & GPIO devices on ESP32 MCUs | |
// | |
// Copyright 2022 BitBank Software, Inc. All Rights Reserved. | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. |
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
#ifndef INCLUDE_PERSON_SENSOR_H | |
#define INCLUDE_PERSON_SENSOR_H | |
// Definitions for the Useful Sensors Person Sensor module. | |
// Includes the standard I2C address of the sensor, constants for the | |
// configuration commands, and the data structures used to communicate results | |
// to the main system. | |
// See the full developer guide at https://usfl.ink/ps_dev for more information. | |
#include <stdint.h> |
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
// | |
// GP-02 GPS/BDS/GNSS module performance test | |
// tested with a ESP32-S2 module (USB CDC serial + exposed HW UART pins) | |
// | |
#include <OneBitDisplay.h> | |
ONE_BIT_DISPLAY obd; | |
uint8_t u8Flags; | |
#define FLAG_TIMEDATE 1 | |
#define FLAG_POSITION 2 |
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
// Created by http://oleddisplay.squix.ch/ Consider a donation | |
// In case of problems make sure that you are using the font file with the correct version! | |
const uint8_t Roboto_Black_20Bitmaps[] PROGMEM = { | |
// Bitmap Data: | |
0x00, // ' ' | |
0xF7,0xBD,0xEF,0x39,0xCC,0x63,0x00,0xCF,0x30, // '!' | |
0xCD,0x9B,0x36,0x6C,0xD9,0x00, // '"' | |
0x0C,0xC0,0xCC,0x0D,0x80,0xD8,0x7F,0xE7,0xFE,0x19,0x81,0x90,0xFF,0xEF,0xFE,0x13,0x03,0x30,0x33,0x03,0x70, // '#' | |
0x04,0x00,0x80,0x7C,0x3F,0xC7,0xFC,0xE7,0x9C,0x03,0xE0,0x3F,0x03,0xF0,0x0F,0x70,0xEF,0x3D,0xFF,0x9F,0xE0,0xF8,0x0C,0x01,0x80, // '$' |
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
// Created by http://oleddisplay.squix.ch/ Consider a donation | |
// In case of problems make sure that you are using the font file with the correct version! | |
const uint8_t Roboto_Black_28Bitmaps[] PROGMEM = { | |
// Bitmap Data: | |
0x00, // ' ' | |
0xFB,0xEF,0x3C,0xF3,0xCF,0x3C,0xF3,0xCF,0x3C,0xF0,0x00,0x3C,0xF3,0xEF,0x3C, // '!' | |
0xF7,0x7B,0xB9,0xDC,0xEE,0x77,0x3B,0x9D,0xCE, // '"' | |
0x03,0x18,0x03,0x9C,0x01,0xCE,0x00,0xE7,0x00,0x73,0x80,0x39,0x81,0xFF,0xFC,0xFF,0xFE,0x7F,0xFF,0x07,0x38,0x03,0x9C,0x01,0xCC,0x0F,0xFF,0xE7,0xFF,0xF3,0xFF,0xF8,0x39,0xC0,0x1C,0xE0,0x0E,0x70,0x06,0x30,0x07,0x38,0x00, // '#' | |
0x03,0x80,0x07,0x00,0x0E,0x00,0x7E,0x01,0xFF,0x07,0xFF,0x1F,0xFE,0x3E,0x3E,0x78,0x7C,0xF8,0x01,0xF8,0x01,0xFC,0x01,0xFE,0x01,0xFE,0x00,0xFE,0x00,0x7E,0xF8,0x7D,0xF0,0xFB,0xF1,0xF3,0xFF,0xE7,0xFF,0x87,0xFE,0x03,0xF8,0x01,0x80,0x03,0x00,0x06,0x00, // '$' |
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
// | |
// SCD4x example | |
// Customized for the 01Space ESP32-C3 0.42" OLED board | |
// written by Larry Bank | |
// | |
// Displays the SCD41 CO2 sensor values on the built-in 72x40 OLED | |
// | |
#include <Wire.h> | |
#include <OneBitDisplay.h> | |
#include "SparkFun_SCD4x_Arduino_Library.h" //Click here to get the library: http://librarymanager/All#SparkFun_SCD4x |
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
// | |
// Animated GIF demo for SH1107 (64x128) OLED | |
// | |
// written by Larry Bank (bitbank@pobox.com) | |
// 2022-03-01 | |
// | |
// This sketch provides example code of how to use my AnimatedGIF and OneBitDisplay | |
// libraries to display a smooth animation on the I2C SH1107 OLED display | |
// Normally these displays are driven at 100Khz or 400Khz clock speed, but they are | |
// capable of running reliably at up to 2Mhz since the same controller chip supports |
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
Multi-Invaders Game Emulator | |
Written by Larry Bank (bitbank@pobox.com) | |
Copyright (c) 2021 BitBank Software, Inc. | |
Project started July 2021 | |
This Arduino sketch contains the code needed to emulate the original | |
Taito Space Invaders along with Galaxy Wars and Lunar Rescue. The project | |
does not contain any game code and instead will read the game code and data | |
from ZIP files provided by the user. The 3 ZIP files can be from MAME or | |
other emulators and must contain the following files: |
NewerOlder