klotz: circuitpython*

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. This desktop gadget, based on ESP32 C3, is a mini-TV and unique design artwork. It features a 1.44-inch LCD screen, WiFi connectivity for displaying weather and time, and a portable pendant design.
  2. The Spotpear ESP32C3 LCD 1.44 is a desktop gadget with a 1.44-inch LCD screen that can display videos and connect to WiFi for weather and time updates.
  3. import EasyCrypt
    keystring = "SixteenByteKey!!"
    inpstring = "Some super secret string, that I don't want you to see."
    # This is the initialisation vector/nonce. I generated it with the below code. As you
    # will need it to decrypt later on, you might want to store it and not just generate it each time
    # I just generated it like this and printed this one out to store it.
    #
    # import os
    # from binascii import hexlify, unhexlify
    # ivstring = hexlify(os.urandom(16)).decode()

    ivstring = "aba0a3bde34a03487eda3ec96d5736a8"

    crypted = EasyCrypt.encrypt_string(keystring, inpstring, ivstring)
    print(crypted)

    decrypted = EasyCrypt.decrypt_string(keystring, crypted, ivstring)
    print(decrypted)
  4. CircuitPython 8.0.0 introduces support for environment variables. Environment variables are commonly used to store “secrets” such as Wi-Fi passwords and API keys. This method does not make them secure. It only separates them from the code.

    CircuitPython uses a file called settings.toml at the drive root (no folder) as the environment. User code can access the values from the file using os.getenv(). It is recommended to save any values used repeatedly in a variable because os.getenv() will parse the settings.toml file contents on every access.
  5. A USB key with a Trinket M0 heart and four RGB NeoPixels for customizable glow.
  6. 2022-06-12 Tags: , , , by klotz
  7. 2022-02-21 Tags: , , , , , , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: circuitpython

About - Propulsed by SemanticScuttle