Skip to content

Instantly share code, notes, and snippets.

View sholwe's full-sized avatar

sholwe sholwe

View GitHub Profile
// thx @trollkopp for helping me optimizing the code
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// ARDUINO
#define OLED_MOSI 11
#define OLED_CLK 12
@zonque
zonque / xymodem-mini.c
Last active February 27, 2024 06:31
simple xmodem/ymodem implementation in C
/*
* Minimalistic implementation of the XModem/YModem protocol suite, including
* a compact version of an CRC16 algorithm. The code is just enough to upload
* an image to an MCU that bootstraps itself over an UART.
*
* Copyright (c) 2014 Daniel Mack <github@zonque.org>
*
* License: MIT
*/