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
# | |
#Example of how to use EasyMDB RS232 | |
#Date June/2014 | |
#Version 1.0 | |
#Braulio Chi Salavarria | |
#Not warranty, for educational purposes | |
#Thinkchip | |
import serial | |
import time |
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
# | |
#Example of how to use EasyMDB RS232 | |
#Date June/2014 | |
#Version 1.0.1 | |
#Braulio Chi Salavarria | |
#Not warranty, for educational purposes | |
#Thinkchip | |
import serial | |
import time |
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
// Comunicacion serial con dispositivo MDB | |
//THINKCHIP | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(43, 39, 29, 27, 25, 23); | |
String inputString = ""; //Arreglo recibido | |
boolean stringComplete=false; //Bandera del arreglo recibido | |
boolean comienza=true; //Bandera de inicio de comunicación |
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 "mbed.h" | |
int main() { | |
DigitalOut led(LED_RED); | |
while (true) { | |
gpo = 1; | |
led = 1; // off |
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 "mbed.h" | |
int main() { | |
DigitalOut led(LED_RED); | |
while (true) { | |
led = 1; // off |
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
# | |
#Example of how to use EasyMDB RS232 | |
#Date June/2014 | |
#Version 1.0.2 | |
#Not warranty, for educational purposes | |
#Thinkchip | |
#V1.0.1 | |
#dispense coin function | |
#Level coin changer added |
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
#define REDPIN 15 | |
#define GREENPIN 14 | |
#define BLUEPIN 13 | |
#define FADESPEED 5 // make this higher to slow down | |
void setup() { | |
pinMode(REDPIN, OUTPUT); | |
pinMode(GREENPIN, OUTPUT); | |
pinMode(BLUEPIN, OUTPUT); |
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
/** | |
* ---------------------------------------------------------------------------- | |
* WirelessMonitorHub.ino - wireless monitor hub sketch using AIR430Boost FCC driver. | |
* Copyright (C) 2012-2013 Anaren Microwave, Inc. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
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
/** | |
* ---------------------------------------------------------------------------- | |
* WirelessMonitorSensor.ino - wireless monitor sensor sketch using AIR430Boost ETSI driver. | |
* Copyright (C) 2012-2013 Anaren Microwave, Inc. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
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
//****************************** | |
// Terminal Script// | |
//****************************** | |
program test; | |
const StringSendID = 'Sending ID command'; | |
const StringSendCoinInit = 'Sending Initialization Coin Changer'; | |
var Inbuffer:String; | |
var receivedchar:byte; | |
var pointerbuffer:byte; | |
var stop:boolean; |
OlderNewer