Skip to content

Instantly share code, notes, and snippets.


Roger Clark rogerclarkmelbourne

View GitHub Profile
rogerclarkmelbourne / dmr-contacts.php
Last active Jan 11, 2018
PHP Script to download data from DMR-MARC "Last Heard" page(s) with filtering and limit. For use with Amateur radio DMR transcrievers
View dmr-contacts.php
function removeTextBeforeEndOf($str,$findme)
return substr($str,(strpos($str,$findme)+strlen($findme)));
$csvFile ="";
$offsetID= 0;
rogerclarkmelbourne / test_image_generator.ino
Created Sep 29, 2017
Arduino BMP rainbow test image to serial - test image generator
View test_image_generator.ino
* Simple rainbow test image generator
* By Roger Clark
typedef struct
unsigned char r;
rogerclarkmelbourne /
Created Sep 29, 2017
Simple BMP image viewer written in Python to view images sent via serial from an Arduino etc
# Very simple python program view BMP images sent via Serial from Arduino or other microcontoller boards
# The program sents the charachter '0' to Serial, to trigger the Arduino board to send the image.
# Only tested with 320x240 pixel images.
# Change root.geometry('320x280') to some other size if your image is bigger
# Requires Python 2.7 - probably won't work in Python 3 without changes
# Requires Pillow (PIL) image library. Install using pip install Pillow from your command line.
from Tkinter import *
import Tkinter, Tkconstants, tkFileDialog