generator and strings changed to match new eeprom scheme
This commit is contained in:
parent
f3aa6c63d6
commit
8891ce0cb7
@ -25,13 +25,13 @@ default_strings = {
|
||||
'pin_header': '{} pin header',
|
||||
'form_undefined': 'Undefined',
|
||||
'group_other': 'other',
|
||||
'eeprom_detect': 'Uses VID/PID',
|
||||
'eeprom_setup': 'Uses EEPROM',
|
||||
'uses_5v_and_3v3': 'Needs 5v and 3v3 power',
|
||||
'uses_5v': 'Needs 5v power',
|
||||
'uses_3v3': 'Needs 3v3 power',
|
||||
'uses_i2c': 'Uses I2C',
|
||||
'uses_spi': 'Uses SPI',
|
||||
'uses_eeprom': 'Uses EEPROM',
|
||||
'uses_eepvid': 'Uses VID/PID',
|
||||
'uses_n_gpio_pins': 'Uses {} GPIO pins',
|
||||
'bcm_pin_rev1_pi': 'BCM pin {} on Rev 1 ( very early ) Pi',
|
||||
'physical_pin_n': 'Physical pin {}',
|
||||
@ -117,10 +117,10 @@ def load_overlay(overlay):
|
||||
|
||||
if 'eeprom' in loaded:
|
||||
eeprom = str(loaded['eeprom'])
|
||||
if eeprom == 'True':
|
||||
details.append(strings['uses_eepvid'])
|
||||
if eeprom == 'required':
|
||||
details.append(strings['uses_eeprom'])
|
||||
if eeprom == 'detect' or eeprom == 'True':
|
||||
details.append(strings['eeprom_detect'])
|
||||
if eeprom == 'setup':
|
||||
details.append(strings['eeprom_setup'])
|
||||
|
||||
if 'power' in loaded:
|
||||
uses_5v = False
|
||||
|
@ -16,8 +16,8 @@ strings:
|
||||
- type_hat: 'HAT form-factor'
|
||||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- uses_eepvid: 'EEPROM Hersteller ID'
|
||||
- uses_eeprom: 'benutzt EEPROM'
|
||||
- eeprom_detect: 'EEPROM Hersteller ID'
|
||||
- eeprom_setup: 'benutzt EEPROM'
|
||||
- uses_i2c: 'benutzt I2C'
|
||||
- uses_spi: 'benutzt SPI'
|
||||
- uses_5v_and_3v3: '5v und 3v3 Stromversorgung'
|
||||
|
@ -16,8 +16,8 @@ strings:
|
||||
- type_hat: 'HAT form-factor'
|
||||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- uses_eepvid: 'EEPROM product ID'
|
||||
- uses_eeprom: 'EEPROM auto configuration'
|
||||
- eeprom_detect: 'EEPROM product ID'
|
||||
- eeprom_setup: 'EEPROM auto configuration'
|
||||
- uses_i2c: 'Communication over I2C'
|
||||
- uses_spi: 'Communication over SPI'
|
||||
- uses_5v_and_3v3: 'Needs 5v and 3v3 power'
|
||||
|
@ -16,8 +16,8 @@ strings:
|
||||
- type_hat: 'formato HAT'
|
||||
- type_phat: 'formato pHAT'
|
||||
- type_classic: 'formato clásico'
|
||||
- uses_eepvid: 'EEPROM ID'
|
||||
- uses_eeprom: 'Usa EEPROM'
|
||||
- eeprom_detect: 'EEPROM ID'
|
||||
- eeprom_setup: 'Usa EEPROM'
|
||||
- uses_i2c: 'Usa I2C'
|
||||
- uses_spi: 'Usa SPI'
|
||||
- uses_5v_and_3v3: 'Alimentación 5v+3v3'
|
||||
|
@ -16,8 +16,8 @@ strings:
|
||||
- type_hat: 'format HAT'
|
||||
- type_phat: 'format pHAT'
|
||||
- type_classic: 'format Classic'
|
||||
- uses_eepvid: 'identification produit par EEPROM'
|
||||
- uses_eeprom: 'configuration automatique par EEPROM'
|
||||
- eeprom_detect: 'identification produit par EEPROM'
|
||||
- eeprom_setup: 'configuration automatique par EEPROM'
|
||||
- uses_i2c: 'communication par bus I2C'
|
||||
- uses_spi: 'communication par bus SPI'
|
||||
- uses_5v_and_3v3: 'Alimentation 5v et 3v3'
|
||||
|
@ -16,8 +16,8 @@ strings:
|
||||
- type_hat: 'Fattore di forma HAT'
|
||||
- type_phat: 'Fattore di forma pHAT'
|
||||
- type_classic: 'Fattore di forma classico'
|
||||
- uses_eepvid: 'Prodotto ID EEPROM'
|
||||
- uses_eeprom: 'Utilizza EEPROM'
|
||||
- eeprom_detect: 'Prodotto ID EEPROM'
|
||||
- eeprom_setup: 'Utilizza EEPROM'
|
||||
- uses_i2c: 'Utilizza I2C'
|
||||
- uses_spi: 'Utilizza SPI'
|
||||
- uses_5v_and_3v3: 'Alimentazione a 5v+3.3V'
|
||||
|
@ -16,8 +16,8 @@ strings:
|
||||
- type_hat: 'HAT form-factor'
|
||||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- uses_eepvid: 'EEPROM ID'
|
||||
- uses_eeprom: 'Kullanan EEPROM'
|
||||
- eeprom_detect: 'EEPROM ID'
|
||||
- eeprom_setup: 'Kullanan EEPROM'
|
||||
- uses_i2c: 'Kullanan I2C'
|
||||
- uses_spi: 'Kullanan SPI'
|
||||
- uses_5v_and_3v3: '5v ve 3.3V Güç'
|
||||
|
Loading…
Reference in New Issue
Block a user