Skip to content

Instantly share code, notes, and snippets.

Martin Malý maly

Block or report user

Report or block maly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AT.A09
; Monitor vectors:
MRESET EQU $E000
MSERIN EQU $E003
MSEROUT EQU $E006
MPRINT2 EQU $E009
MPRINTX EQU $E00C
MPRIMM EQU $E00F
.ORG $100
.ENT $
View 00segment.z80
.pragma segment
org 0100h
jp begin
.dseg
org 8000h
data: db 10
.eseg
View 6502.emu
cpu C6502
memory.ram.from 0x0000
memory.ram.to 0x0fff
memory.rom.from 0xf000
memory.rom.to 0xffff
serial 6850
serial.data 0xa001
serial.control 0xa000
@maly
maly / adent.z80
Created Oct 2, 2017
Jednodeskova vyzva 1
View adent.z80
.ORG 0
.ENGINE mac
SERIALCTRL = 00h
SERIALDATA = 01h
DI
IM 1
LD sp,ramtop
JR cold
@maly
maly / mac.emu
Last active Sep 17, 2017
SBC Challenge
View mac.emu
cpu Z80
memory.ram.from 0x1000
memory.ram.to 0x13ff
memory.rom.from 0x0000
memory.rom.to 0x0fff
;serial simple
;serial.in 1
;serial.out 1
@maly
maly / edushield-sleep.ino
Created May 27, 2017
Edushield + interrupt + sleep
View edushield-sleep.ino
int RED = A2;
int YELLOW = A3;
int GREEN = 13;
int BUTTON = 2;
#include <avr/sleep.h> // library for sleep
#include <avr/power.h> // library for power control
int currentState = 0;
View Environment.js
function Environment(parent) {
this.vars = Object.create(parent ? parent.vars : null);
this.parent = parent;
}
Environment.prototype = {
extend: function() {
return new Environment(this);
},
lookup: function(name) {
var scope = this;
@maly
maly / BlinkRGBStrip
Last active Dec 21, 2016
Arduino: Blinking LED Strip
View BlinkRGBStrip
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 50
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN.
#define DATA_PIN 3
// Define the array of leds
View sigfoxgps.ino
/*
* Example code showing of to send any datatype - 12 bytes max - (in this example, a struct of
* GPS coordinate) to SigFox network with a SmartEverything prototyping board
* (http://www.smarteverything.it/).
*
* - GPS frame decoding is made with TinyGPS library (https://github.com/mikalhart/TinyGPS).
* - SigFox modem communication is done through direct AT commands. This code is minimalist :
* it doesn't manage downlink messages, and it's error management is sort of non existant.
*
* Why don't I use official SmartEverything libraries (https://github.com/ameltech/) ?
You can’t perform that action at this time.