Installing requires downloading the a [Raspbian image][rasp-img-recommended] (archive) and installing using [Etcher][etcher]. The default credentials are username pi
and password raspberry
.
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
%#ok<*NOPTS> | |
format shortG | |
clear; close all; clc; | |
% two coupled equations with integral terms: | |
% u(x) = (e1 * sigma * T1^4) + (1 - e1) * ∫[-0.5w;0.5w] F(x, y, d) * v(y) dy | |
% v(y) = (e2 * sigma * T2^4) + (1 - e2) * ∫[-0.5w;0.5w] F(x, y, d) * u(x) dx | |
% constants |
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
#!/bin/bash | |
# > opensim installation script | |
# version: 1.0.0 | |
# last modified: 08/05/2020 | |
# ------------------------------------------------------------------------------------------------------- | |
# > sudo test |
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
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 | |
link/ether e4:42:a6:ee:26:9f brd ff:ff:ff:ff:ff:ff | |
inet 10.126.49.212/19 brd 10.126.63.255 scope global dynamic noprefixroute wlp2s0 | |
valid_lft 5092sec preferred_lft 5092sec |
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
This is some test text file, that can be downloaded from the Linux command line. |
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
[{ | |
"title": { | |
"front": "sonnal-an-chigi", | |
"back": "Knife Hand Inward Strike", | |
"korean": "손날 안치기" | |
}, | |
"desc": "An intermediate technique that is executed by striking with the muscle at the side of the hand located between the base of the small finger and the wrist.", | |
"img": "http://www.taekwondopreschool.com/images/strike5side.jpg", | |
"level": 1 | |
}, |
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
// cli.h | |
// version 1.0.0 | |
// define callback functions (can be anywhere, not just here) | |
void some_func(void) { return; } | |
void some_other_func(void) { return; } | |
// define some actions manually | |
// undesired, just an example! | |
CLI_ACTION act1 = { 0x10, &some_func }; |
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
// uart.h | |
// version 1.0.1 | |
// create new UART instance with BAUDRATE 9600 | |
// currently not implemented | |
UART* uart1 = uart.new(2); | |
// construct UART frame | |
UART_FRAME frm = | |
{ |
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
// init SPI instance @ 8MHz ( | |
// bps = SYSCLK / (CPSDVSR * (1 + SCR)) | |
SPI* spi_test = spi.new(2); | |
// send value '110' to PWM1 | |
spi.send(spi_test, PWM1, 110); | |
// send value '110' to PWM1 and validate | |
if(!spi.send(spi_test, PWM1, 110)) | |
{ |
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
// chksum.h | |
// version 1.2.2 | |
// WARNING! | |
// rewrite "0b0011'0101" to "0b00110101" when using C | |
// 4-bit checksum test | |
// input: 1011'1000'1110 | |
// size: 3 nibbles (12 bits) | |
// output: 1000 |
NewerOlder