Skip to content

Instantly share code, notes, and snippets.

View S0urceror's full-sized avatar

S0urceror S0urceror

View GitHub Profile
@S0urceror
S0urceror / logfile.txt
Created August 5, 2022 06:54
Debug session homebridge-google-nest-sdm
2022-08-05T06:36:07.865Z ciao:init Loading ciao v1.1.5...
2022-08-05T06:36:07.966Z HAP-NodeJS:Advertiser Initializing HAP-NodeJS v0.10.2 ...
[8/5/2022, 8:36:08 AM] Loaded config.json with 0 accessories and 2 platforms.
[8/5/2022, 8:36:08 AM] Loaded 4 cached accessories from cachedAccessories.
[8/5/2022, 8:36:08 AM] ---
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[8/5/2022, 8:36:08 AM] Loaded plugin: homebridge-config-ui-x@4.50.0
[8/5/2022, 8:36:08 AM] Registering platform 'homebridge-config-ui-x.config'
[8/5/2022, 8:36:08 AM] ---
[8/5/2022, 8:36:08 AM] Loaded plugin: homebridge-nest-cam@7.5.2
org 08000h
ld hl, 08000h ; this memory area
call Memory_GetSlot
call GET_SLTWRK_FOR_SLOT
; retrieve pointer from SLTWRK area
ld e,(hl)
inc hl
ld d,(hl)
; do something with it
@S0urceror
S0urceror / device.cpp
Created July 10, 2021 15:02
CH376s Arduino Code test
#include "wiring.h"
#include "ch376s.h"
#include "device.h"
#include <stdio.h>
#include <string.h>
#include "descriptors.h"
uint8_t oneOneByte[1] = {1};
uint8_t oneZeroByte[1] = {0};
uint8_t twoZeroBytes[2] = {0,0};