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
options: | |
parameters: | |
author: Dilshan R Jayakody | |
category: '[GRC Hier Blocks]' | |
cmake_opt: '' | |
comment: '' | |
copyright: '' | |
description: '' | |
gen_cmake: 'On' | |
gen_linking: dynamic |
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 <xc.h> | |
#include <stdint.h> | |
// This is not an accurate frequency. The exact value may depend on the | |
// specifications of the hosting platform. | |
#define _XTAL_FREQ 25000 | |
void main(void) | |
{ | |
uint8_t position = 2; |
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 <limits.h> | |
#ifndef PIN_BCK | |
#define PIN_BCK 22 | |
#endif | |
#ifndef PIN_WS | |
#define PIN_WS 23 | |
#endif |
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
import serial | |
device = serial.Serial('/dev/ttyACM0') | |
if device.is_open: | |
device.write(13) | |
device.write(str.encode('-360')) | |
device.close() |
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
import serial | |
device = serial.Serial('/dev/ttyACM0') | |
if device.is_open: | |
device.write([94, 49, 54, 49, 55, 52, 0, 0, 0, 0, 0, 0]) | |
device.close() |
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 "dtmfgen.h" | |
DTMFGenerator dtmf; | |
void setup() | |
{ | |
} | |
void loop() |