Skip to content

Instantly share code, notes, and snippets.

@sao-coding
sao-coding / lanq PCDock V3.ino
Created April 21, 2026 18:47
ESP32-based BLE to MQTT bridge for controlling LANQ PCDock V3 RGB lighting. Integrates with Home Assistant as a Light entity via MQTT discovery.
/**
* Home Assistant + MQTT control for LANQ PCDock V3 RGB lighting
* This project bridges BLE (Nordic UART Service) to MQTT,
* allowing the device to be integrated as a Light entity in Home Assistant.
*/
#include <Arduino.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
import java.util.*;
class Num {
static int[] G = new int[9877];
}
public class App {
public static void main(String args[]) {
for (int i = 1023; i < 9877; i++) {
boolean check = Check(Integer.toString(i));
import java.util.*;
class Data {
static int[] Data = new int[9877];
}
abstract class Player {
abstract public String play(int[] Answer, int Number);
}
import tensorflow as tf
import matplotlib.pyplot as plt
import matplotlib as mp
import numpy as np
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense
tf.config.experimental.set_visible_devices([],'GPU') # run on GPU
# Module Version
#print(f"tensorflow version installed,{tf.version}")
//程式碼開始
var Line_Notify_Token = "QWPHg8mG8jKEqlDyVHIc11AOOYwN7T1flth9tsDeebb";
var CHANNEL_ACCESS_TOKEN = "lfBUpA4OfZ+7MQ9Q86LOHD9UAgV2oXolAl7SYhWS71GC9yefUPv0QwMiFNd26+zLep/EDIlSY4vdel7bIWFx4ctVsSWw1xpGzE7hbze5yI/hJMRPw76Htd2F1bs58BpxOTSDXcWCZg5eXCWk1xS5YgdB04t89/1O/w1cDnyilFU=";
var spreadSheetID = "1i-o13nhyCSOrqg2oDTOBLn-oLsiZxNYTnieJPqFKxBk";
var myID = "U0142b5abd211d48eff752245b720517d";
var confirmMessage = "您所輸入的資料如下:";
var cancelMessage = "您所輸入的資料已取消。";
var welcomeTitle = "定時提醒系統,請輸入相關資料進行設定:";
var finishTitle = "設定完成,時間到了會發出 Line 訊息通知您。";