Complete the code to start defining a new footprint in KiCad.
footprint = pcbnew.Footprint[1]()In KiCad's Python API, pcbnew.FootprintNew() is used to create a new footprint object.
Complete the code to set the footprint name.
footprint.[1]("Custom_Footprint_01")
The method SetName sets the footprint's name in KiCad's API.
Fix the error in adding a pad to the footprint.
pad = pcbnew.Pad[1]()The correct method to create a new pad object is PadNew() in KiCad's API.
Fill both blanks to set pad properties correctly.
pad.[1](1) pad.[2](pcbnew.PAD_SHAPE_RECT)
SetNumber assigns the pad number, and SetShape defines the pad shape.
Fill all three blanks to add the pad to the footprint and set its size and position.
footprint.[1](pad) pad.[2](pcbnew.wxSizeMM(1.5, 1.5)) pad.[3](pcbnew.wxPointMM(5, 5))
AddPad adds the pad to the footprint, SetSize sets pad size, and SetPosition sets its location.
