Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

diogotavc/detpic32-playground

Repository files navigation

detpic32-playground

This is a very empty repository for testing and playing around with the detpic32.

Note

This repository can be useful for solving AC2 guides, so I've decided to also put solved exercises here.

Programs

Simple counter from 0x00 to 0xFF.

  • Seven segment displays and LEDs display the numbers
  • Switches control the speed (from 2 seconds to 2/15 seconds)
  • Button halts the counter and restarts it, if it's reached 0xFF
  • Potentiometer controls the brightness of the seven segment displays

Utils

Basic functions for interfacing with the peripherals.

  • delay - Waits for the specific milliseconds
  • delayAsync - Same as before, but without halting the program
  • initComponent - Initializes (or deactivates) the specific component
  • cmdDisplay - Displays any number, from 0x00 to 0xFF
  • cmdLED - Displays any number, from 0000 0000 to 1111 1111
  • stateButton() - Check the state of the button (0 or 1)
  • stateSwitch() - Check the state of the switches (from 0000 to 1111)

About

A repository for detpic32 files in C and ASM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published