Practice makes perfect!
Implement a simple timer application which toggles the board LED with a frequency configurable with a macro.
#define FREQUENCY (8) // in Hz
const fetch = require("node-fetch"); | |
let api = "https://api.github.com/repos/asterics/AsTeRICS/"; | |
let raw = "https://raw.githubusercontent.com/asterics/AsTeRICS/"; | |
let path = "Documentation/ACS-Help/HTML/"; | |
let tags = "https://api.github.com/repos/asterics/AsTeRICS/tags/"; | |
let sections = ["Plugins", "ACS", "ARE"]; | |
let link = `${api}contents/${path}Plugins`; |
File generated with: | |
git log --tags --simplify-by-decoration --pretty="format:%ci %H %d" |
const { Board, Led} = require("johnny-five"); | |
const { RaspiIO } = require("raspi-io"); | |
const board = new Board({ | |
io: new RaspiIO() | |
}); | |
const http = require("http"); | |
const host = "127.0.0.1"; | |
const port = 80; | |
let led = null; |
const http = require("http"); | |
const fs = require("fs"); | |
const welcomePage = `<html> | |
<head><title>My First Page</title></head> | |
<body><h1>Hello from my Node.js Server!</h1></body> | |
</html>`; | |
const defaultPage = `<html> | |
<head><title>My First Page</title></head> | |
<body> |
W3C ARIA Best Practices
HÜ:
"Wenn's Scheiße programmiert ist, dann hast natürlich ein Problem." Gerhard Nussbaum, 18. Nov 2020
Web Accessibility Toolbar for IE
<html lang="en-US" class=" "> | |
<head> | |
<title>The Connected Car | StudyATHome Internationally</title> | |
<style type="text/css"> | |
svg:not(:root).svg-inline--fa { | |
overflow: visible; | |
} | |
.svg-inline--fa { |
const alert = `++ [0] /home/payman/snort_src/snort3/captures/test_case/knxnetip/header/02_knxnetip_invalid_header_size.pcap | |
pkt:1 gid:147 sid:2 rev:0 | |
timestamp:08/20-01:50:54.000000 | |
eth(DLT): 0A:01:01:01:01:01 -> 0A:02:02:02:02:02 type:0x0800 | |
ipv4(0x0800): 172.22.10.76 -> 172.22.12.76 | |
Next:0x11 TTL:255 TOS:0x0 ID:4660 IpLen:20 DgmLen:51 | |
udp(0x11): SrcPort:3671 DstPort:41975 Len:23 | |
knxnetip.raw[65]: | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
Practice makes perfect!
Use the provided template and register an Interrupt Service Routine (ISR), statically, which toggles the LEDs on the board.
Register the ISR with the tm4c startup file (tm4c1294ncpdt_startup_c
) for a GPIO Interrupt Request (IRQ) to the port connected to the user switches.
TIPS: Don't forget to use keywords such as extern
and interrupt
, which are possibly not written in the startup code.