@@ -120,16 +120,16 @@ async fn main(spawner: Spawner) {
120120 // Register DB with the web layer (all handlers access it via crate::web::db())
121121 web:: init_db ( db) ;
122122
123- // 4. GPIO outputs for 8 relay outputs (PIN_0 – PIN_7 )
123+ // 4. GPIO outputs for 8 relay outputs (PIN_2 – PIN_9 )
124124 let relay_pins = [
125- Output :: new ( p. PIN_0 , Level :: Low ) ,
126- Output :: new ( p. PIN_1 , Level :: Low ) ,
127125 Output :: new ( p. PIN_2 , Level :: Low ) ,
128126 Output :: new ( p. PIN_3 , Level :: Low ) ,
129127 Output :: new ( p. PIN_4 , Level :: Low ) ,
130128 Output :: new ( p. PIN_5 , Level :: Low ) ,
131129 Output :: new ( p. PIN_6 , Level :: Low ) ,
132130 Output :: new ( p. PIN_7 , Level :: Low ) ,
131+ Output :: new ( p. PIN_8 , Level :: Low ) ,
132+ Output :: new ( p. PIN_9 , Level :: Low ) ,
133133 ] ;
134134
135135 // 6. Spawn GPIO task
@@ -209,9 +209,9 @@ async fn main(spawner: Spawner) {
209209 & mut common,
210210 sm0,
211211 sm1,
212- p. PIN_8 , // CF — active-power pulse input
213- p. PIN_9 , // CF1 — current/voltage RMS pulse input
214- Output :: new ( p. PIN_10 , Level :: Low ) , // SEL — LOW = current mode (startup default)
212+ p. PIN_0 , // CF — active-power pulse input
213+ p. PIN_1 , // CF1 — current/voltage RMS pulse input
214+ Output :: new ( p. PIN_22 , Level :: Low ) , // SEL — LOW = current mode (startup default)
215215 HLW8012_R_SENSE ,
216216 HLW8012_V_RATIO ,
217217 HLW8012_PULSE_TIMEOUT_MS ,
0 commit comments