Skip to content

Instantly share code, notes, and snippets.

@dtcooper
Last active March 23, 2024 16:44
Show Gist options
  • Save dtcooper/1ae1e0ab60d4e9ee58182d63d740f933 to your computer and use it in GitHub Desktop.
Save dtcooper/1ae1e0ab60d4e9ee58182d63d740f933 to your computer and use it in GitHub Desktop.
Argon One Raspberry Pi Case

Fan Control

https://gitlab.com/DarkElvenAngel/argononed (branch 0.5.x for V3/Raspberry Pi 5)

IR Remote

lirc Configuration

OR JUST USE IT IN-KERNEL HERE

Expand below for the argon.lircd.conf config that goes in /etc/lirc/lircd.conf.d/

lircd.conf for IR Remote
#
# lirc config for Argon remote.
#   * https://www.argon40.com/products/argon-remote
#
# You can add any lircd to this directory, as long as the config file ends with
# .lircd.conf - it just needs to support the buttons below.
#

begin remote
  name                 argon
  suppress_repeat      5

  flags                SPACE_ENC
  bits                 32
  eps                  20
  aeps                 200

  header               8800   4400
  one                  550    1650
  zero                 550    550
  ptrail               550
  repeat               8800   2200
  gap                  38500
  toggle_bit           0

  frequency            38000

  begin codes
    KEY_POWER          0x00ff39c6
    KEY_UP             0x00ff53ac
    KEY_DOWN           0x00ff4bb4
    KEY_LEFT           0x00ff9966
    KEY_RIGHT          0x00ff837c
    KEY_VOLUMEUP       0x00ff01fe
    KEY_VOLUMEDOWN     0x00ff817e
    KEY_OK             0x00ff738c
    KEY_HOME           0x00ffd32c
    KEY_MENUBACK       0x00ffb946
    KEY_BACK           0x00ff09f6
  end codes
end remote

IR Remote Power Button

Reset Power Button on IR Remote

This resets the power button on the IR remote to work properly

i2cset -y 1 0x1a 0xaa 0x00 0xff 0x39 0xc6 i

# Or for V3 case (pi 5)
i2cset -y 1 0x1a 0x82 0x00 0xff 0x39 0xc6 i

Disable Power Button

This sets the power button to respond to a random IR code

i2cset -y 1 0x1a 0xaa 0x01 0x23 0x45 0x67 i

# Or for V3 case (pi 5)
i2cset -y 1 0x1a 0x82 0x01 0x23 0x45 0x67 i

More Reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment