20 lines
332 B
C
20 lines
332 B
C
/*****
|
|
* Copyright (c) 2023 - Poivron Robotique
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#include "pico/stdlib.h"
|
|
#include <stdio.h>
|
|
#include "QEI.h"
|
|
|
|
void main(void)
|
|
{
|
|
stdio_init_all();
|
|
QEI_init();
|
|
while(1){
|
|
QEI_update();
|
|
printf(">c1:%d\n>c2:%d\n", QEI_get(QEI_A_NAME), QEI_get(QEI_B_NAME) );
|
|
sleep_ms(10);
|
|
}
|
|
}
|