This file contains 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
/* | |
* This example shows that the WICED is not capable of | |
* recovering from a network fallout. It will keep | |
* returning the error: | |
* | |
* SDEP_CMD_TCP_WRITE failed, Error: NOTUP (9) | |
* | |
* even if it can reconnect. | |
* | |
* To test - update wifi-credentials below and connect |
This file contains 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
/* | |
* This example shows that the WICED is not capable of | |
* recovering from a network fallout. It will keep | |
* returning the error: | |
* | |
* SDEP_CMD_TCP_WRITE failed, Error: NOTUP (9) | |
* | |
* even if it can reconnect. | |
* | |
* To test - update wifi-credentials below and connect |
This file contains 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
/* | |
Basic server for Adafruit Feather LoRa radios. | |
This is based on the RadioHead library for RF95, but has all | |
the required pins and setup for Feather LoRa's. | |
NOTE: Each client needs a unique radio address for this to work | |
*/ | |
#include <RHReliableDatagram.h> | |
#include <RH_RF95.h> |
This file contains 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
/* | |
Basic client for Adafruit Feather LoRa radios. | |
This is based on the RadioHead library for RF95, but has all | |
the required pins and setup for Feather LoRa's. | |
NOTE: You need to select a unique radio address for this to work | |
*/ | |
#include <RHReliableDatagram.h> | |
#include <RH_RF95.h> |
This file contains 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
// Simple code snippet to blink lights and produce a siren for Makeblock's mBot. | |
// Author: @jenschr / Jensa | |
// Please credit if re-distributing this code | |
#include <MeMCore.h> | |
MeRGBLed rgb(PORT_7); | |
int highestPitch = 3500; | |
int lowestPitch = 640; | |
int toneRightNow = lowestPitch; | |
boolean isTheToneMovingUpwards = true; |
This file contains 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
#!/bin/sh | |
# Basic setup script for devices | |
# Works on OSX + should also work for Unix. | |
# Users of Windows 10 (or higher) can likely use the builtin Ubuntu install. | |
# | |
# We need to do the following: | |
# 1. Query the computer for the relevant USB port | |
# 2. Set the device to listening mode (if required) | |
# 3. Query the device for the deviceID |
This file contains 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
// Generic wait-function. I use this to throttle MQTT connections. | |
// Only use this when you want to do absolutely NOTHING while waiting. | |
// If you need something to be done while waiting, consider putting what | |
// you want done inside the while-loop :) | |
// uncomment the console.log calls to see debug output | |
var wait = function(startTime){ | |
var d = new Date(); | |
var millis = d.getTime(); | |
var stopAt = millis+(startTime*1000); |
This file contains 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
/* | |
* Shift register code from | |
* http://bildr.org/2011/02/74hc595/ | |
*/ | |
int SER_Pin = 8; //pin 14 on the 75HC595 | |
int RCLK_Pin = 9; //pin 12 on the 75HC595 | |
int SRCLK_Pin = 10; //pin 11 on the 75HC595 | |
//How many of the shift registers – change this |
This file contains 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
/* September 2018 | |
* | |
* The default Makeblock firmware does not work for Baseboard's | |
* (as can be seen from countless unanswered threads on the Makeblock forums) | |
* This firmware has the following tiny changes that make it work: | |
* - #include <MeOrion.h> is changed to #include <MeBaseBoard.h> | |
* - int starter_mode = 0; is changed to int starter_mode = 1; | |
* With these changes, the standard software will work as it should. | |
*/ |
This file contains 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
/************************************************************************* | |
* File Name :starter_factory_firmware.ino | |
* Author : Ander, Mark Yan | |
* Updated : Ander, Mark Yan | |
* Version : V0a.01.007 | |
* Date : 21/06/2017 | |
* Description : Firmware for Makeblock Electronic modules with Scratch. | |
* License : CC-BY-SA 3.0 | |
* Copyright (C) 2013 - 2016 Maker Works Technology Co., Ltd. All right reserved. | |
* http://www.makeblock.cc/ |