attempt at displaying eeprom field
(currently not working but should not cause problems)
This commit is contained in:
parent
aef2898b14
commit
07468507ca
|
@ -22,11 +22,7 @@ GROUND_PINS = [6,9,14,20,25,30,34,39]
|
|||
|
||||
lang = "en"
|
||||
default_strings = {
|
||||
'made_by': 'Made by {manufacturer}',
|
||||
'type_hat': 'HAT form-factor',
|
||||
'type_classic': 'Classic form-factor',
|
||||
'pin_header': '{} pin header',
|
||||
'uses_i2c': 'Uses I2C',
|
||||
'wiring_pi_pin': 'Wiring Pi pin {}',
|
||||
'uses_n_gpio_pins': 'Uses {} GPIO pins',
|
||||
'bcm_pin_rev1_pi': 'BCM pin {} on Rev 1 ( very early ) Pi',
|
||||
|
@ -148,6 +144,11 @@ def load_overlay(overlay):
|
|||
if pin_3['mode'] == 'i2c' and pin_5['mode'] == 'i2c':
|
||||
details.append(strings['uses_i2c'])
|
||||
|
||||
if 'eeprom' in loaded:
|
||||
eeprom = str(loaded['eeprom'])
|
||||
if eeprom == 'yes':
|
||||
details.append(strings['uses_eeprom'])
|
||||
|
||||
# A URL to more information about the add-on board, could be a GitHub readme or an about page
|
||||
if 'url' in loaded:
|
||||
details.append('[{text}]({url})'.format(text=strings['more_information'], url=loaded['url']))
|
||||
|
|
|
@ -15,6 +15,7 @@ strings:
|
|||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'benutzt EEPROM'
|
||||
- uses_i2c: 'benutzt I2C'
|
||||
- uses_spi: 'benutzt SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi Anschluss {}'
|
||||
|
|
|
@ -14,6 +14,7 @@ strings:
|
|||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'Uses EEPROM'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
|
|
|
@ -15,6 +15,7 @@ strings:
|
|||
- type_phat: 'formato pHAT'
|
||||
- type_classic: 'formato clásico'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'Usa EEPROM'
|
||||
- uses_i2c: 'Usa I2C'
|
||||
- uses_spi: 'Usa SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
|
|
|
@ -15,6 +15,7 @@ strings:
|
|||
- type_phat: 'format pHAT'
|
||||
- type_classic: 'format Classic'
|
||||
- pin_header: '{} broches'
|
||||
- uses_eeprom: 'EEPROM'
|
||||
- uses_i2c: 'bus I2C'
|
||||
- uses_spi: 'bus SPI'
|
||||
- wiring_pi_pin: 'broche Wiring Pi {}'
|
||||
|
|
|
@ -15,6 +15,7 @@ strings:
|
|||
- type_phat: 'Fattore di forma pHAT'
|
||||
- type_classic: 'Fattore di forma classico'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'Utilizza EEPROM'
|
||||
- uses_i2c: 'Utilizza I2C'
|
||||
- uses_spi: 'Utilizza SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
|
|
|
@ -15,6 +15,7 @@ strings:
|
|||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'Uses EEPROM'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
|
|
|
@ -14,8 +14,9 @@ strings:
|
|||
- type_hat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- uses_eeprom: 'EEPROM'
|
||||
- uses_i2c: 'I2C'
|
||||
- uses_spi: 'SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: 'Uses {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
|
|
Loading…
Reference in New Issue