The nRF52 Development Kit (PCA10040) hardware provides support for the Nordic Semiconductor nRF52832 ARM Cortex-M4F CPU and the following devices: ADC CLOCK FLASH GPIO I2C MPU NVIC PWM RADIO (Bluetooth Low Energy) RTC Segger RTT (RTT Console) SPI UART WDT
利用 這個J-Link Prog Connector
PIN # Signal Name 1VDD 2IMCU_TMSS 3GND 4IMCU_TCKS 5V5V 6IMCU_TDOS 7Cut off 8IMCU_TDIS 9Cut off 10IMCU_RESET
The PAC1934 is a four channel power/energy monitor with current sensor amplifier and bus voltage monitors that feed high resolution ADCs. Digital circuitry performs power calculations and energy accumulation. The PAC1934 enables energy monitoring with integration periods from 1 ms to up to 36 hours. Bus voltage, sense resistor voltage, and accumulated proportional power are stored in registers for retrieval by the system master or embedded controller. This library supports all the 4 channels on the PAC1934. Source: http://ww1.microchip.com/downloads/en/DeviceDoc/PAC193x_Arduino_Library_v1_0_0.zip
using System.ClientModel;
using OpenAI;
using OpenAI.Chat;
// 雲端 OpenAI:金鑰從環境變數讀
ChatClient cloud = new("gpt-4.1-mini",
Environment.GetEnvironmentVariable("OPENAI_API_KEY"));
// 本機 Ollama(GX10):金鑰隨便填,不會檢查
ChatClient local = new("gemma4:12b",
new ApiKeyCredential("ollama"),
new OpenAIClientOptions { Endpoint = new Uri("http://GX10的IP:11434/v1") });