Complete the code to start creating a new symbol in the PCB design software.
symbol = pcb.new_symbol([1])You need to provide the symbol_name as a string to create a new symbol.
Complete the code to add a pin to the custom symbol with the correct pin number.
symbol.add_pin(number=[1], name='Pin1')
The pin number should be an integer, so use 1 without quotes.
Fix the error in the code to set the pin type correctly.
symbol.add_pin(number=1, name='Pin1', type=[1])
The pin type should be a string like 'input' enclosed in quotes.
Fill both blanks to add a rectangle shape to the symbol with correct coordinates.
symbol.add_shape(type=[1], coords=[2])
The shape type should be 'rectangle' and coordinates a list like [0, 0, 100, 50].
Fill all three blanks to finalize the symbol by setting its reference, value, and saving it.
symbol.set_reference([1]) symbol.set_value([2]) symbol.[3]()
Set reference as 'R1', value as '10k', and call save() to save the symbol.
