You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tdalign="center"><ahref="https://modm.io/reference/config/modm-rp-pico">Raspberry Pi Pico</a></td>
703
703
</tr><tr>
704
+
<tdalign="center"><ahref="https://modm.io/reference/config/modm-rp-pico">Raspberry Pi Pico</a></td>
* This Source Code Form is subject to the terms of the Mozilla Public
7
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+
*/
10
+
11
+
#include<modm/board.hpp>
12
+
13
+
usingnamespaceBoard;
14
+
15
+
/*
16
+
* This example demonstrates the usage of the ADC peripheral.
17
+
* Connect two potentiometers to A0 and A1 to get reasonable readings or just
18
+
* touch the two pins with your fingers to get ... interesting readings.
19
+
* Make sure you're not too charged up with static electricity!
* This Source Code Form is subject to the terms of the Mozilla Public
7
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+
*/
10
+
11
+
#include<modm/board.hpp>
12
+
#include<array>
13
+
14
+
usingnamespaceBoard;
15
+
16
+
/*
17
+
* This example demonstrates the usage of the ADC peripheral.
18
+
* Connect two potentiometers to A0 and A1 to get reasonable readings or just
19
+
* touch the two pins with your fingers to get ... interesting readings.
20
+
* Make sure you're not too charged up with static electricity!
21
+
*
22
+
* NOTE: the readings are raw ADC values and need to be converted to voltage!
23
+
*/
24
+
25
+
std::array<uint16_t, 4> adc_data_buf;
26
+
27
+
staticvoid
28
+
adc_handler()
29
+
{
30
+
staticuint8_t adc_data_idx = 0;
31
+
32
+
if (Adc1::getInterruptFlags() & Adc1::InterruptFlag::EndOfConversion)
* This Source Code Form is subject to the terms of the Mozilla Public
8
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
+
*/
11
+
12
+
#include<modm/board.hpp>
13
+
14
+
usingnamespaceBoard;
15
+
16
+
int
17
+
main()
18
+
{
19
+
Board::initialize();
20
+
LedD13::setOutput();
21
+
22
+
// Use the logging streams to print some messages.
23
+
// Change MODM_LOG_LEVEL above to enable or disable these messages
* This Source Code Form is subject to the terms of the Mozilla Public
7
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
8
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
0 commit comments