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
############################################################## | |
macchina.name=Macchina | |
macchina.vid.0=0x2341 | |
macchina.pid.0=0x003f | |
macchina.vid.1=0x2341 | |
macchina.pid.1=0x0044 | |
macchina.upload.tool=avrdude |
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
#define MASTER_CLOCK 84000000 | |
#include "SamNonDuePin.h" | |
uint32_t clock_a = 42000000; // Sampling frequency in Hz | |
int brightness = 0; // how bright the LED is | |
int fadeAmount = 5; // how many points to fade the LED by | |
const int IOENABLE = 6; // the number of the 12Vio_EN pin |
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
/* | |
Fade | |
Modified 6/6/16 to demonstrate Macchina 2.0 RGB LEDs, | |
also functioning as a HELLO WORLD type sketch. | |
This example shows how to fade an LED on the RGB LED | |
using the analogWrite() function. | |
The analogWrite() function uses PWM, so if |
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
#include "SamNonDuePin.h" | |
const int LPC = PIN_EMAC_ERX0; // LOW POWER CONTROL pin | |
void setup() { | |
pinModeNonDue(LPC, OUTPUT); | |
digitalWriteNonDue(LPC, LOW); // LOW = no power at +12V_SW/+5V_SW | |
// HIGH = power at +12V_SW/+5V_SW | |
} |
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
#include "SamNonDuePin.h" | |
const int LPC = PIN_EMAC_ERX0; // LOW POWER CONTROL pin | |
const int PWM_nVPW = PIN_EMAC_EMDC; // PWM/VPW level control | |
void setup() { | |
pinModeNonDue(LPC, OUTPUT); | |
pinModeNonDue(PWM_nVPW, OUTPUT); | |
digitalWriteNonDue(LPC, HIGH); // LOW = no power at +12V_SW/+5V_SW |
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
/* | |
* Example based on code found here. | |
* https://github.com/iwanders/OBD9141 | |
* | |
* Put the "OBD9141 in Libraries folder. | |
* | |
*/ | |
#include "OBD9141.h" | |
#include "SamNonDuePin.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
/* | |
Test code for SD_HSMCI library | |
Initialises and reads the SD card properties before writing 5 files of between 5120 bytes | |
and 5120000 bytes to the root directory of the card. The time taken for each file write | |
and read is printed to the initialised Serial out. 512 is the blocksize set so this should | |
give optimum performance. | |
No checking for free space is done on the SD card. | |
Card detect works on the Duet, it will wait for a card to be inserted. |
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
/* | |
Heavily modified from below code - works with NEOPIXEL 24 pos ring and M2 hardware. | |
Program Name: blueShift | |
Version: v0.7 | |
Author: Pete Mills | |
Website: petemills.blogspot.com | |
Email: [email protected] |
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
// Demo program for testing DIGI cellular module. | |
// Looks for "Emergency flasher button was pressed" CAN message in 2006 Ford Fusion and sends text. | |
// Digi module needs to be set up to send SMS first for this sketch to work: | |
// http://www.digi.com/resources/documentation/digidocs/90001525/default.htm | |
// Specifically this example: | |
// http://www.digi.com/resources/documentation/digidocs/90001525/default.htm#tasks/t_send_sms.htm%3FTocPath%3DGetting%2520started%7CExamples%7C_____2 | |
#include "variant.h" | |
#include <due_can.h> | |
#include "SamNonDuePin.h" |
OlderNewer