Skip to content

Instantly share code, notes, and snippets.

View rogerclarkmelbourne's full-sized avatar

Roger Clark rogerclarkmelbourne

  • Roger Clark
  • Melbourne, Australia
View GitHub Profile
@rogerclarkmelbourne
rogerclarkmelbourne / dmr-contacts.php
Last active January 11, 2018 10:06
PHP Script to download data from DMR-MARC "Last Heard" page(s) with filtering and limit. For use with Amateur radio DMR transcrievers
<?php
function removeTextBeforeEndOf($str,$findme)
{
return substr($str,(strpos($str,$findme)+strlen($findme)));
}
$csvFile ="";
$offsetID= 0;
$foundEnd=false;
@rogerclarkmelbourne
rogerclarkmelbourne / test_image_generator.ino
Created September 29, 2017 22:16
Arduino BMP rainbow test image to serial - test image generator
/*
* Simple rainbow test image generator
* By Roger Clark
* www.rogerclark.net
*/
typedef struct
{
unsigned char r;
@rogerclarkmelbourne
rogerclarkmelbourne / BMP_image_from_arduino.py
Created September 29, 2017 22:05
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