{
  "authors": [
    "Martin Krischik <krischik@users.sourceforge.net>"
  ],
  "build-switches": {
    "*": {
      "ada_version": [
        "-gnat2022"
      ]
    },
    "development": {
      "compile_checks": "Warnings",
      "contracts": "Yes",
      "runtime_checks": "Overflow"
    },
    "release": {
      "compile_checks": "Warnings",
      "contracts": "No",
      "runtime_checks": "Default"
    },
    "validation": {
      "compile_checks": "Warnings",
      "contracts": "Yes",
      "runtime_checks": "Everything"
    }
  },
  "configuration": {
    "values": {
      "embedded_rp2040": {
        "Board": "rpi_pico",
        "Max_CPUs": 2
      },
      "rp2040_hal": {
        "Interrupts": "bb_runtimes",
        "Use_Startup": false
      }
    }
  },
  "depends-on": [
    {
      "embedded_rp2040": "^15.3",
      "pico_bsp": "^2.2",
      "pico_xbsp": "^1.5",
      "rp2040_hal": "^2.7.1"
    }
  ],
  "description": "Chapter 5: Controlling an RGB LED with PWM",
  "executables": [
    "sketch_05_1_random_color_light",
    "sketch_05_2_gradient_color_light"
  ],
  "licenses": "GPL-3.0-or-later",
  "long-description": "Learn how to drive a common-cathode RGB LED using the RP2040's PWM peripherals.\nThis chapter introduces a reusable Ada package for colour control and demonstrates both random colours and a smooth\ncolour-wheel gradient.\n\nExtend the simple LED examples to full-colour control with an RGB LED. Create a reusable `Pico.Analog.RGB_LED` package\nand explore two sketches: random colours (using the embedded runtime) and a smooth colour-wheel transition.\n\nContained in Chapter 05 are:\n\n2. sketch_05_1_random_color_light.adb   - Chapter 5.1 Random Color Light\n3. sketch_05_2_gradient_color_light.adb - Chapter 5.2 Gradient Color Light\n\nRead the full tutorial at [Chapter 5: Controlling an RGB LED with\nPWM](https://pi-ada-tutorial.sourceforge.io/pico_ada_c05_rgb), [GNATdoc\ndocumentation](https://pi-ada-tutorial.sourceforge.io/gnatdoc/pico_ada_c05_rgb/), [SourceForge\nrepository](https://sourceforge.net/p/pi-ada-tutorial/code/ci/master/tree/pico_ada_c05_rgb/)\n",
  "maintainers": [
    "Martin Krischik <krischik@users.sourceforge.net>"
  ],
  "maintainers-logins": [
    "krischik"
  ],
  "name": "pico_ada_c05_rgb",
  "origin": {
    "hashes": [
      "sha256:38e197d0eb80efa9b428967aa313841cb733279422a30a19427900b3ff087337",
      "sha512:aad119e7df8f299c57c86c85716d8ce93ec33e9760a50d9879779339bfd8a2368fbef471e8329088e2a2b666ca91c4cc81491d55817a5a463474f0834e1ce4d0"
    ],
    "url": "https://sourceforge.net/projects/pi-ada-tutorial/files/Alire/pico_ada_c05_rgb-1.5.2.tgz"
  },
  "tags": [
    "raspberry",
    "pi",
    "pico",
    "rp2040",
    "tasking",
    "light-tasking",
    "ada2022",
    "embedded"
  ],
  "version": "1.5.2",
  "website": "https://pi-ada-tutorial.sourceforge.io/pico_ada_c05_rgb"
}
