templates: # defining templates to be used later on
  - &img_width
    width: 375
  - &wire
  #  category: bundle
    shield: false
    show_equiv: false
    show_name: false
    show_wirecount: false
    show_wirenumbers: false    

cables:
  P1c1:
    <<: *wire
#    gauge: 0.14 mm2
#    length: 0.2
    wirelabels: [+5V, Request, Data GND]
    colors: [WH,VT, BU]
  P1c2:
    <<: *wire  
   # gauge: 0.14 mm2
   # length: 0.8
#    color_code: T568A
    wirecount: 3
#    wirelabels: [+5V, Request, Data GND, N.C., Data, Power GND]
#    wirelabels: [TX-,RX+,DC+]
#    wirelabels: [DA+, DA-, DB+, DC+, DC-, DB-, DD+, DD-]
    colors: [WHGN, GN, OG]
    # colors: [BK, RD, BK, BK, BU, BK]   
  Waterc:
    <<: *wire
#    gauge: 0.14 mm2
#    length: 0.3
    wirelabels: [+5V, Signal, GND]
    colors: [BN, BK, BU]          
  USBPowerc:
    <<: *wire
#    gauge: 0.14 mm2
#    length: 0.2
    wirelabels: [+5V, D+, D-, GND]
    colors: [RD, WH,GN, BK]      

connectors:
  P1Connector:
    pins: [1,2,3]
    pinlabels: [+3.3V, Data GND, Data]
    
  D1Mini:
    image:
      src:   ../images/d1_mini_pinout.png  # path to the image file
      <<: *img_width
    pins: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
    pinlabels: [+5V, GND, GPIO02, GPIO00, GPIO04, GPIO05, RX, TX,
                RST, ADC, GPIO16, GPIO14, GPIO12, GPIO13, GPIO15, +3.3V,
                USB5V, USBd+, USBd-, USBGND]
  P1:
    image:
      src:   ../images/P1I.png  # path to the image file
      <<: *img_width
    pins: [1,2,3,4,5,6]
    pinlabels: [+5V, Request, Data GND, N.C., Data, Power GND]
  Water:  
    image:
      src:   ../images/s0tool-watermeter.jpg  # path to the image file
      <<: *img_width
    pins: [1,2,3]
    pinlabels: [+5V, Signal, GND]      
  USB:
    image:
      src:  ../images/usb_connector.jpeg  # path to the image file
      <<: *img_width  
#    pins: [1-4]
    pinlabels: [+5V, D+, D-, GND]     
    
connections:
  -
    - D1Mini: [+5V, GND, RX]
    - P1c1: [1,2,3]
    - P1Connector: [+3.3V, Data GND, Data]
  -
    - P1Connector: [+3.3V, Data GND, Data]
    - P1c2: [WHGN, GN, OG]
    - P1: [+5V, Data GND, Data]
  -
    - D1Mini: [+5V, GND, GPIO00]
    - Waterc: [1,2,3]
    - Water: [+5V, Signal, GND]                  
  -
    - D1Mini: [USB5V, USBd+, USBd-, USBGND]
    - USBPowerc: [+5V,D+, D-, GND]
    - USB: [+5V, D+, D-, GND]                      


tweak:
  override:
    graph:
      ranksep: '3' 
    wireTweak: &wireTweak
      shape: none  # Hide the surrounding frame
      fontsize: "12"  # Reduce the space needed for text
      fontcolor: white  # Same as background to hide the text
    P1c1:  
      <<: *wireTweak 
    P1c2:  
      <<: *wireTweak       
metadata: &metadata 
  title: P1 DSMR icm waterpuls lezer
  pn: p1_dsmr_water

  authors:
    Created:
      name: Ton
      date: 2025-03-12
    Approved:
      name: Ton
      date: 2025-03-12

  revisions:
    A:
      name: Ton
      date: 2025-03-12
      changelog: aanpassingen

  template:
    name: din-6771    
    sheetsize: A3
