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 <iostream> | |
#include <windows.h> | |
void sendSerialData(const wchar_t* portName, const char* data) { | |
HANDLE hSerial; | |
DCB dcbSerialParams = { 0 }; | |
COMMTIMEOUTS timeouts = { 0 }; | |
// Open the serial port | |
hSerial = CreateFileW(portName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); |
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
curl -o weather.txt https://celestrak.org/NORAD/elements/weather.txt |
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
/* | |
Fully Devolped by Yazeed Alahmad and Mohmammad Alasmari | |
*/ | |
// These are the libraries that used in this project | |
#include <stdlib.h> | |
#include <string.h> | |
// These libraries are only for some text formatting purposes | |
#include <stdio.h> | |
#include <windows.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
"\033[0m" // Reset all text attributes to default | |
"\033[1m" // Bold on | |
"\033[2m" // Faint off | |
"\033[3m" // Italic on | |
"\033[4m" // Underline on | |
"\033[5m" // Slow blink on | |
"\033[6m" // Rapid blink on | |
"\033[7m" // Reverse video on | |
"\033[8m" // Conceal on | |
"\033[9m" // Crossed-out on |
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 <iostream> | |
#include <conio.h> | |
using namespace std; | |
int main() { | |
char ch; | |
while(true) { | |
if(_kbhit()) { // check if key has been pressed | |
ch = _getch(); |
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
void setup() | |
{ | |
pinMode(13, OUTPUT); | |
Serial.begin(9600); | |
while (!Serial); | |
Serial.println("Input 1 to Turn LED on and 2 to off"); | |
} | |
void loop() { |
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
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<body> | |
<div id="container"> | |
<table cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tr> | |
<td></td> | |
<td> | |
<div class="text-center"> | |
<span>Current Filter: </span><span id="filterName">Pass Through</span> | |
</div> |