[フレーム]
Keil Studio Cloud

Important update: Arm Announces End of Life Timeline for Mbed. This site will be archived in July 2026. Read the full announcement.

Users » chris » Code » app-board-AnalogOut » Documentation
Chris Styles / Mbed 2 deprecated app-board-AnalogOut

Important changes to repositories hosted on mbed.com

Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.

To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.

It is also possible to export all your personal repositories from the account settings page.

Dependencies: mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 AnalogOut Aout(p18);
00004 AnalogIn pot1(p19);
00005 
00006 int main()
00007 {
00008  while(1) {
00009  for(float i=0.0; i<1.0; i+=0.1) {
00010  Aout = i;
00011  wait(0.00001+(0.0001*pot1.read()));
00012  }
00013  }
00014 }

Generated on Tue Jul 12 2022 12:10:53 by doxygen 1.7.2
Repository toolbox
Repository details
Type: Program
Mbed OS support: Mbed 2 deprecated
Created: 16 Oct 2012
Imports: 994
Forks: 1
Commits: 2
Dependents: 0
Dependencies: 1
Followers: 13

The code in this repository is MIT licensed.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.

Access Warning

You do not have the correct permissions to perform this operation.

×

AltStyle によって変換されたページ (->オリジナル) /