Skip to content

Instantly share code, notes, and snippets.

View minimum-necessary-change's full-sized avatar

minimum-necessary-change

View GitHub Profile
@minimum-necessary-change
minimum-necessary-change / Wemos Lolin32 vs Wemos Lolin32 Lite Pinout.txt
Last active April 9, 2019 09:48
Wemos Lolin32 vs Wemos Lolin32 Lite Pinout
http://blog.pagefault-limited.co.uk/wemos-lolin32-pinout-vs-wemos-lolin32-lite-pinout

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

/*******************Demo for MQ-2 Gas Sensor Module V1.0*****************************
Support: Tiequan Shao: support[at]sandboxelectronics.com
Lisence: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
Note: This piece of source code is supposed to be used as a demostration ONLY. More
sophisticated calibration is required for industrial field application.
Sandbox Electronics 2011-04-25
************************************************************************************/
/******************************************************************************
MCP4725 Example Waveform Sketch
Joel Bartlett
SparkFun Electronics
Sept. 11, 2014
https://github.com/sparkfun/MCP4725_Breakout
This sketch takes data from a lookup table to provide
waveforms to be generated by the MCP4725 DAC.
/*
Steps:
1. Edit pcmConfig.h
a: On Uno or non-mega boards, #define buffSize 128. May need to increase.
b: Uncomment #define ENABLE_RECORDING and #define BLOCK_COUNT 10000UL
2. Usage is as below. See https://github.com/TMRh20/TMRpcm/wiki/Advanced-Features#wiki-recording-audio for
additional informaiton.
*/
@minimum-necessary-change
minimum-necessary-change / ISD1820_Voice_Recorder.ino
Created March 17, 2019 07:20
ISD1820 Arduino Voice Recorder
/*
* ISD1820 Arduino Voice Recorder
* to record and playback sound using Arduino and ISD1820 Sound Recorder
* Watch the video https://youtu.be/IfK8z_o5vbk
* get this code from http://robojax.com/learn/arduino/
/*
* ISD1820 Arduino Voice Recorder
//==============================================================================
// ModbusRTU.cpp
//==============================================================================
/*-------------------------------------------------------------------------------
MODBUS RTU COMMUNICATION
Description:
Partial implementation of the Modbus RTU communication protocol.
/*
* REUK.co.uk - February 2016
* Useful function to test if one of the eight user input buttons
* on a TM1638 module is currently being pressed.
*/
// The byte buttons is the value returned by the TM1638 to indicate
// which buttons are currently being pressed.
byte buttons;
/*
* REUK.co.uk February 2016
* Displaying two 1 or 2dp values less than 100 on a TM1638 module.
*
* An excellent starter guide to the TM1638 modules is available here:
* http://tronixstuff.com/2012/03/11/arduino-and-tm1638-led-display-modules/
*/
// include the TM1638 library (which you must first install to your Arduino IDE).
#include <TM1638.h>
@minimum-necessary-change
minimum-necessary-change / skiplist.c
Created February 20, 2019 15:24 — forked from icejoywoo/skiplist.c
Example of Skip List source code for C
/*
Example of Skip List source code for C:
Skip Lists are a probabilistic alternative to balanced trees, as
described in the June 1990 issue of CACM and were invented by
William Pugh in 1987.
This file contains source code to implement a dictionary using
skip lists and a test driver to test the routines.