bubble_peripheral

Overview

This demo demonstrates basic usage of the on-board accelerometer to implement a bubble level. A bubble level utilizes two axes to visually show deviation from a level plane (0 degrees) on a given axis. This demo behaves exactly the same with bubble demo, but it focuses on how to use files generated by MCUXpresso Config Tools.

The following files are generated by MCUXpresso Config Tools:

  • bubble_peripheral.mex: This mex file contains pin/clock/peripheral settings of this example. User can modify the settings in config tool and generate new source file for pin/clock/peripheral.

  • peripheral.c/.h: These files are generated by MCUXpresso peripherals tool which could be imported back to the tool.

  • clock_config.c/.h: These files are generated by MCUXpresso clocks tool which could be imported back to the tool.

  • pin_mux.c/.h: These files are generated by MCUXpresso pins tool which could be imported back to the tool.

Supported Boards