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
use std::f64::consts::PI; | |
use std::thread::sleep; | |
use std::time::Duration; | |
// Constants defining the dimensions of the terminal. | |
const TERMINAL_WIDTH: usize = 48; // Width of the terminal screen. | |
const TERMINAL_HEIGHT: usize = 16; // Height of the terminal screen. | |
/// Draws a line between two points using Bresenham's line algorithm. | |
/// |
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
<Qucs Schematic 24.4.1> | |
<Properties> | |
<View=-304,40,840,747,0.895332,0,0> | |
<Grid=10,10,0> | |
<DataSet=lm386-amp.dat> | |
<DataDisplay=lm386-amp.sch> | |
<OpenDisplay=0> | |
<Script=lm386-amp.m> | |
<RunScript=0> | |
<showFrame=0> |
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
/* USER CODE BEGIN Header */ | |
/** | |
****************************************************************************** | |
* @file : hx711-module-test.c | |
* @brief : Firmware to test modified HX711 modules with load-cells. | |
****************************************************************************** | |
*/ | |
/* USER CODE END Header */ | |
/* Includes ------------------------------------------------------------------*/ | |
#include "main.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
options: | |
parameters: | |
author: Dilshan R Jayakody | |
category: '[GRC Hier Blocks]' | |
cmake_opt: '' | |
comment: '' | |
copyright: '' | |
description: '' | |
gen_cmake: 'On' | |
gen_linking: dynamic |
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 <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 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 <limits.h> | |
#ifndef PIN_BCK | |
#define PIN_BCK 22 | |
#endif | |
#ifndef PIN_WS | |
#define PIN_WS 23 | |
#endif |
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
import serial | |
device = serial.Serial('/dev/ttyACM0') | |
if device.is_open: | |
device.write(13) | |
device.write(str.encode('-360')) | |
device.close() |
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
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 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 "dtmfgen.h" | |
DTMFGenerator dtmf; | |
void setup() | |
{ | |
} | |
void loop() |