This file contains hidden or 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
| """ | |
| Simple script that encodes an image into another image by hijacking the two least significant bits. | |
| The script has only been tested on images that have the same dimensions and I've only done a half-hearted attempt at matching the image sizes. | |
| """ | |
| from PIL import Image | |
| import numpy as np | |
| import os | |
This file contains hidden or 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
| // Pulse Width measurement using input capture unit | |
| // Author: Simen E. Sørensen | |
| //(overflow calculations based on code by Nick Gammon 31 August 2013: | |
| // https://www.gammon.com.au/forum/?id=11504) | |
| // Date: 01 October 2020 | |
| // Input: Pin D8 (Arduino Uno (and I think Arduino Nano as well)) | |
| volatile boolean risingEdge; | |
| volatile boolean fallingEdgeFlag; |