Wire the UART pins to the CH341A:
TX = SDA
RX = SCL
Power on camera and immediately start snander within a few milliseconds:
sudo ./snander -i
| { | |
| inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
| inputs.prisma-utils.url = "github:VanCoding/nix-prisma-utils"; | |
| outputs = | |
| { nixpkgs, prisma-utils, ... }: | |
| let | |
| pkgs = import nixpkgs { system = "x86_64-linux"; }; | |
| prisma = | |
| (prisma-utils.lib.prisma-factory { |
| # 1) Install Nix and enable experimental Flakes | |
| # 2) Run with "nix develop" | |
| # 3) Enjoy determinism :-) | |
| { | |
| description = "Raspberry Pi Pico development environment"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| picoSdk = { |
| IPL g77fc04e | |
| D-15 | |
| HW Reset | |
| SPI 54M | |
| 64MB | |
| BIST0_0001-OK | |
| MXP found at 0x0000f000 |
| /* This is an experimental script which I used to successfully clear the "Service High Voltage Charging System" message which can occur due to a loss of isolation. | |
| * Previously I had to pay frequently to access the expensive SPS programming system to clear this code whilst attempting to resolve the underlying cause. | |
| * This script was generated by a tool I developed to analyse J2534 log files. | |
| * This could work for other cars but I can't comment on success. Please do not run this unless you understand the consequences! | |
| * I intend to convert to a version that will work with ELM327 once I learn how these work. | |
| * The program requires the J2534-Sharp library as a dependency. | |
| * https://github.com/BrianHumlicek/J2534-Sharp | |
| */ | |
| using System; | |
| using System.Linq; |
| interface Colours { | |
| red: string; | |
| green: string; | |
| blue: string[]; | |
| } | |
| let colours: Colours; | |
| export type PropertyNamesOfType<T, TT> = { [K in keyof T]: T[K] extends TT ? K : never }[keyof T] & string; |
| const bowl = new Bowl(); | |
| bowl.add(Water.ml(300)); | |
| bowl.add(Suger.tablespoon(1)); | |
| bowl.stir(); | |
| bowl.add(Yeast.grams(8)); | |
| time.sleep(Duration.minutes(10)); |
Install Docker from here...
https://store.docker.com/editions/community/docker-ce-desktop-mac
| <%-- | |
| * Copyright IBM Corporation 2009-2017 | |
| * | |
| * Licensed under the Eclipse Public License - v 1.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #include <NeoPixelBus.h> | |
| #include <IRremoteESP8266.h> | |
| #include <IRrecv.h> | |
| #include <IRutils.h> | |
| const uint16_t PixelCount = 163; // this example assumes 4 pixels, making it smaller will cause a failure | |
| const uint8_t RemotePin = 14; // make sure to set this to the correct pin, ignored for Esp8266 | |
| NeoPixelBus<NeoGrbFeature, NeoEsp8266Dma800KbpsMethod> strip(PixelCount, 2); | |
| IRrecv remote(RemotePin); |