This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//***************************************************************************** | |
// | |
// very hacked together WS2812 example for the MPS432E4 | |
// baseed on https://github.com/joewa/WS2812-LED-Driver_ChibiOS | |
// and some bits to come from https://github.com/hubmartin/STM32F4_WS2812B | |
// and http://www.martinhubacek.cz/arm/improved-stm32-ws2812b-library | |
//***************************************************************************** | |
#include <stdint.h> | |
#include <stdbool.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#import the PySerial library and sleep from the time library | |
import serial | |
from time import sleep, time | |
# declare to variables, holding the com port we wish to talk to and the speed | |
port = '/dev/ttyAMA0' | |
baud = 9600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# class level varables for check incoming characters are valid LLAP | |
_validID = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-#@?\\*" | |
_validData = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !\"#$%&'()*+,-.:;<=>?@[\\\/]^_`{|}~" | |
def _SerialReadIncomingLLap(self): | |
char = self._serial.read() # should not time out but we should check anyway | |
self.logger.debug("tSerial: RX:{}".format(char)) | |
if char == 'a': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" B025 - RTC/EEPROM/TMP Example for the TMP100NA Temp sensor | |
Copyright (c) 2013 Ciseco Ltd. | |
Example test code by: Matt Lloyd | |
Orignal Temp100 Class by Adam Boardman | |
Which can be found at | |
https://github.com/adamboardman/eve-alpha-tmp100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" B025 - RTC/EEPROM/TMP Example For the 24LC256 EEPROM | |
Copyright (c) 2013 Ciseco Ltd. | |
Author: Matt Lloyd | |
Requires wiringpi2-python for i2c interface | |
This code is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import serial | |
import sys | |
import time | |
port = '/dev/ttyAMA0' | |
baud = 9600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
const int theDeviceAddress = 0x50; | |
void setup(void) { | |
Serial.begin(9600); | |
Wire.begin(); | |
//power the board | |
pinMode(A2,OUTPUT); | |
digitalWrite(A2,LOW); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display TMP100 readout to serial | |
// Fork Robotics 2012 | |
// | |
// Set the TMP Address and Resolution here | |
int tmpAddress = 0x48; | |
int ResolutionBits = 10; | |
#include <Wire.h> | |