Initial Setup/Hardware Configuration
The default hardware setup is for the Armachat Compact with 320x240 pixel screen utilizing ST7789 controller. If you have different hardware, you will need to edit the armachat/config.py or the config.txt file. If the config.txt file exists, it supersedes the settings in the armachat/config.py file. The directions will show editing of the config.txt as that is the preferred method for configuring the Armachat.
To configure an Armachat, such as the Armachat Watch, follow these steps.
-
If the Armachat does not have a config.txt file in the root directory, create one. You may copy the following
contents to place in the config.txt file.
# Brightness may be from 0 to 4 bright = 4 # Volume may be from 0 to 6 volume = 6 # Sleep may be 0 to 6 # 0 = Never 4 = 120 # 1 = 15 secs 5 = 300 # 2 = 30 secs 6 = 600 # 3 = 60 sleep = 0 # Tone may be from 1000 to 10000 in steps of 1000 tone = 5000 # Melody may be from 0 to length of items minus one, in melodies # list of the included melody file in audio.py melody = 30 # Region values may be # US, EU433, EU868, CN, JP, ANZ, RU, KR, TW, IN, NZ865, TH, Unset region = "US" # LoRa Profile may be from 1 to 6 # Matches Mestastic values in table at # https://meshtastic.org/docs/settings/channel # 1 = Bw500Cr45Sf128 Short/Fast # 2 = Bw125Cr45Sf128 Short/Slow # 3 = Bw250Cr47Sf1024 Medium/Fast # 4 = Bw250Cr46Sf2048 Medium/Slow # 5 = Bw31_25Cr48Sf512 Long/Fast # 6 = Bw125Cr48Sf4096 Long/Slow loraProfile = 1 # Frequency values are dependent on the module freq freq = 915.25 # Power values may be 5 to 23 power = 5 hopLimit = 3 unitName = "ARMACHAT" myName = "Test 1" myAddress = "12-36-124-1" groupMask = "255-255-255-0" destinations = "Test 2|12-36-124-2|Test 3|12-36-124-3|Test 4|12-36-124-4" password = "Sixteen byte key" passwordIv = "Sixteen byte key" # Model value may be max, compact, or watch model = "watch"
-
Edit the "model" value by setting it to one following values:
-
max
- Display Resolution: 320x240 pixels (Rotation: 270°)
- Display Controller: ST7789
-
compact
- Display Resolution: 320x240 pixels (Rotation: 270°)
- Display Controller: ST7789
-
watch
- Display Resolution: 160x80 pixels (Rotation: 90°)
- Display Controller: ST7789
-
max
-
If you are not located in the United States, you may need to modify the radio settings
to stay compliant with your local communications laws. The following settings are the
radio settings.
- region
- loraProfile
- freq
- power
LoRa Region Information region module freqCenter freqStart freqEnd dutyCycle powerLimit US 915 915.000 902.000 928.000 100 30 EU433 433 433.500 433.000 434.000 10 12 EU868 868 869.525 869.400 869.650 10 16 CN 433 490.000 470.000 510.000 100 19 JP 915 924.300 920.800 927.800 100 16 ANZ 915 921.500 915.000 928.000 100 30 RU 868 868.950 868.700 869.200 100 20 KR 915 921.500 920.000 923.000 100 30 TW 915 922.500 920.000 925.000 100 30 IN 866 866.000 865.000 867.000 100 30 NZ865 866 866.000 864.000 868.000 100 30 TH 915 922.500 920.000 925.000 100 16 Unset 915 915.000 902.000 928.000 100 30