Complete the code to load a built-in KiCad library named 'Device'.
lib = pcbnew.LIB_ID('[1]')
The 'Device' library is a common built-in KiCad library for components.
Complete the code to add a symbol from the 'Device' library to the schematic.
symbol = sch.SCH_SYMBOL('[1]')
'R' stands for resistor symbol in the Device library.
Fix the error in the code to correctly load the 'Device' library symbols.
lib = pcbnew.LIB_ID('[1]') symbol = lib.GetSymbol('R')
Library names are case-sensitive; 'Device' with capital D is correct.
Fill both blanks to create a footprint from the 'Connector' library and add it to the board.
footprint = pcbnew.Footprint('[1]', '[2]') board.Add(footprint)
'Connector' is the library and 'Conn_01x02' is a common footprint name.
Fill all three blanks to load a symbol from the 'Device' library, set its reference, and add it to the schematic sheet.
symbol = sch.SCH_SYMBOL('[1]') symbol.SetReference('[2]') sheet.Add(symbol)
Load resistor symbol 'R', set reference 'R1', and add to sheet.
