View clocks.txt
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
1150,1500 R7 370 | |
820,1500 380 | |
1150,1250 67B1 |
View zec.py
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
#!/usr/bin/python2 | |
# arg1 = current block number | |
# arg2 = current network rate in thousands of solutions per second | |
# arg3 = your solution rate | |
BLOCKS_PER_DAY = 576*10 # 2.5 minute block time | |
RAMP_BLOCKS = 20000 # mining slow start | |
import sys |
View setup.sh
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
wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo add-apt-repository -y "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.9 main" | |
sudo apt-get update | |
sudo apt-get install clang-3.9 | |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 10 | |
sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-3.9 10 | |
#install POCL deps http://portablecl.org/docs/html/install.html | |
# sudo apt-get install libhwloc-dev |
View kernel4.10.5.sh
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
#!/bin/sh | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.5/linux-headers-4.10.5-041005_4.10.5-041005.201703220931_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.5/linux-headers-4.10.5-041005-generic_4.10.5-041005.201703220931_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.5/linux-image-4.10.5-041005-generic_4.10.5-041005.201703220931_amd64.deb | |
sudo dpkg -i *.deb |
View py35.sh
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
#!/bin/sh | |
sudo yum -y update | |
sudo yum -y groupinstall "Development tools" | |
sudo yum -y install zlib-devel openssl-devel | |
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz | |
tar xJf Python-3.5.1.tar.xz | |
cd Python-3.5.1 | |
./configure --prefix=/usr/local | |
sudo make install | |
python3 --version |
View spew.c
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
/* 2018 Ralph Doncaster public domain software */ | |
/* spew a char to stdout, null if none provided */ | |
#include <unistd.h> | |
#include <string.h> | |
int main(int argc, char** argv){ | |
char buf[1024]; | |
char c = 0; | |
if( argc > 1 ) c = *argv[1]; |
View t13tune.ino
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
// t13 OSCCAL tuner | |
// Ralph Doncaster 2019 public domain software | |
// repeatedly press 'x' until OSCCAL value stabilizes | |
// output value is timing delta in cycles followed by OSCCAL | |
#define BAUD_RATE 115200 | |
#include <BBUart.h> | |
#include <avr/sleep.h> | |
#define UART_RX 1 |
View blink-MicroCore.ino
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
// blink LED using sleep and millis() on MicroCore | |
// 2019 Ralph Doncaster freeware | |
#define LEDPIN 0 | |
#include <avr/sleep.h> | |
static void sleep_ms(unsigned ms) { | |
ms -= 9; // 1/2 millis minimum increment in MicroCore | |
unsigned snapshot = (unsigned)millis(); |
View ssd1306.cpp
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
/* ssd1306 test for picoI2C | |
* Ralph Doncaster (c) 2019 | |
* free software - MIT license | |
*/ | |
#include <stdint.h> | |
#include <avr/io.h> | |
#include <avr/pgmspace.h> | |
#include <util/delay.h> | |
#include "picoI2C.h" |
View OscillatorCalibration.ino
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
/* | |
ATtiny13 internal oscillator tuner | |
By Ralph Doncaster (2019) | |
Tweaked and tuned by MCUdude | |
------------------------------------------------------------------------------ | |
[ See diagram: https://github.com/MCUdude/MicroCore#minimal-setup ] | |
Tunes the internal oscillator using a software serial implementation |
OlderNewer