Suggested user settings, Arduino CLI is optional.
{
"arduino.path": "C:\\Users\\jerrylum\\Documents\\Application\\arduino-cli_0.27.1_Windows_64bit",
"arduino.useArduinoCli": true,
"arduino.commandPath": "arduino-cli.exe"
}
A monitor, micro HDMI adpater, HDMI cables
Follow the instruction on 7inch DSI LCD (C) - Waveshare Wiki
https://www.waveshare.net/wiki/7inch_DSI_LCD_(C)
cd ~
git clone https://github.com/waveshare/7inch-DSI-LCD-C.git
cd 7inch-DSI-LCD-C
cd 32
uname -a
Connect your Jetson / Raspberry PI to your laptop computer via ethernet cable.
Find your Jetson / Raspberry Pi's internal IP address by typing the command arp -a
on Windows.
For example, the highlighted IP in the image below is the connected Raspberry Pi. It usually comes with the type dynamic
.
Install the extension Remote - SSH
on your computer. You are also recommended to install the following extensions.
Follow the instruction on https://code.visualstudio.com/docs/remote/ssh#_connect-to-a-remote-host, step 2 to step 6. The SSH Host should be the user name + the IP address, like: [email protected]
import json | |
import random | |
from typing import Dict, Tuple | |
from xmlrpc.client import ProtocolError | |
import requests | |
from twisted.python import failure | |
from twisted.internet import reactor | |
from quarry.types.uuid import UUID | |
from quarry.net.proxy import UpstreamFactory, Upstream, DownstreamFactory, Downstream, Bridge |
#define TIMETEST(name, content) struct timeval tval_before_##name, tval_after_##name, tval_result_##name; \ | |
gettimeofday(&tval_before_##name, NULL); \ | |
content \ | |
gettimeofday(&tval_after_##name, NULL); \ | |
timersub(&tval_after_##name, &tval_before_##name, &tval_result_##name); \ | |
printf(#name " %ld.%06ld\n", (long int)tval_result_##name.tv_sec, (long int)tval_result_##name.tv_usec); |
FROM ubuntu:20.10 | |
MAINTAINER Jerry Lum<serverofjerry (at) gmail (dot) com> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update --fix-missing | |
# curl is needed to download the xampp installer, net-tools provides netstat command for xampp | |
RUN apt-get -y install curl net-tools | |
RUN curl -o xampp-linux-installer.run "https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/7.2.33/xampp-linux-x64-7.2.33-0-installer.run?from_af=true" |
#!/usr/bin/bash | |
# Usage: | |
# curious [--sudo | -s | --terminal | -t] <command> | |
# | |
# For example: | |
# curious notify-send "hello world" | |
# curious -t notify-send "hello world" | |
# curious -s -t notify-send "hello world" |
'use strict'; | |
var RESET = '[0m'; | |
var SAFE = '[32m[1m'; | |
var WARN = '[33m[1m'; | |
var ERROR = '[31m[1m'; | |
var VERBOSE = '[34m[1m'; | |
const join = function(source, to) { | |
for (const [key, value] of Object.entries(source)) |
'use strict'; | |
function getTargetUrl() { | |
return window.location.origin; | |
} | |
function to(url) { | |
window.location.href = url; | |
} |
#include "main.h" | |
void drawBmp(lv_obj_t* canvas, const char* filename){ | |
printf("Start: %d\n",pros::millis()); | |
FILE* f = fopen(filename, "rb"); | |
unsigned char info[54]; | |
fread(info, sizeof(unsigned char), 54, f); // read the 54-byte header | |
// extract image height and width from header |