Skip to content

Instantly share code, notes, and snippets.

View MauroMombelli's full-sized avatar

Mauro Mombelli MauroMombelli

View GitHub Profile
@MauroMombelli
MauroMombelli / parallelDownloadUpdate.sh
Last active January 7, 2019 22:55
Parallel download update for Arch Linux
#!/bin/bash
if [[ $UID -ne 0 ]]; then
sudo -p 'Restarting as root, password: ' bash $0 "$@"
exit $?
fi
#read mirrorlist, "Server =" lines, remove all before and including "= " (10 char)
readarray -t mirrorArray < <(grep "^Server =" /etc/pacman.d/mirrorlist | cut -c 10-)
@MauroMombelli
MauroMombelli / TCD1201Dbluepill.ino
Created July 4, 2018 15:45
NOT working script for TCD1201D on a bluepill using roger's core
#define SH PB3
#define PHI1 PB4
#define PHI2 PB5
#define BT PB6
#define RS PB7
#define OS A0 //A0
int sadc[2048 + 14]; // signal output values read
int sdacCounter = 0;
@MauroMombelli
MauroMombelli / playing with stack and head
Last active March 19, 2019 22:43
stack moved correctly to top of the ram, but for some reason heap refuse to collaborate
/* Entry Point */
ENTRY(reset_handler)
/* Specify the memory areas */
/*
0x08000000 until 0x08010000 is reserved for BOOTLOADER! (64k)
*/
MEMORY
{
EEPROM (rwx) : ORIGIN = 0x08010000, LENGTH = 64K /*fake EEPROM!*/