A collection of information gathered from various resources into a single document to be able to program for Amstrad CPC 464/6128 machines.
CPC has the following components on the mainboard:
A collection of information gathered from various resources into a single document to be able to program for Amstrad CPC 464/6128 machines.
CPC has the following components on the mainboard:
This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail
/*---------------------------------------------------------------------*/ | |
/* --- STC MCU Limited ------------------------------------------------*/ | |
/* --- To be downloaded from the ISP chip (limited STC15 series), for example using the main chip -----------------*/ | |
/* --- Mobile: (86)13922805190 ----------------------------------------*/ | |
/* --- Fax: 86-755-82905966 -------------------------------------------*/ | |
/* --- Tel: 86-755-82948412 -------------------------------------------*/ | |
/* --- Web: www.STCMCU.com --------------------------------------------*/ | |
/* If you want to use this code in the program, in the program, using the information and procedures specified macro crystal technology */ | |
/* If you want to quote this code in the article, please indicate in the article the use of information technology and procedures Wang Jing */ | |
/*---------------------------------------------------------------------*/ |
## Tested the blue pill on 10/09/2018
## 1. install pre-requisites
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt update
sudo apt install gcc-arm-embedded
# If it reports error message of conflict to gcc-arm-none-eabi, which is likely if upgrading from 4.x to 5+, please uninstall it first with:
# "sudo apt-get remove gcc-arm-none-eabi"
sudo apt -y install lib32z1 lib32ncurses5 lib32bz2-1.0
This is a collection of code snippets for various features on the STM8S family microcontrollers (specifically the STM8S003F3). These are written against the STM8S/A SPL headers and compiled using SDCC.
Some of this controller's functions aren't particularly intuitive to program, so I'm dumping samples for future reference here. These are based on the STM8S documentation:
////////////////////////////////////////////////// | |
// | |
// EDIT: Warning, this doesn't seem to work well. | |
// | |
////////////////////////////////////////////////// | |
// Adapted from: https://gist.github.com/miguelmota/3ea9286bd1d3c2a985b67cac4ba2130a | |
package rsacrypto | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha512" | |
"crypto/x509" | |
"fmt" |
;************************************************* | |
;* Create and move a simple sprite x,y * | |
;************************************************* | |
processor 6502 | |
org $1000 | |
;helpful labels | |
CLEAR = $E544 | |
GETIN = $FFE4 |