This commit is contained in:
cfif 2026-03-31 13:38:04 +03:00
parent 012913f2c4
commit 9e9968a56a
1 changed files with 15 additions and 3 deletions

View File

@ -26,6 +26,8 @@ static _Noreturn void Mma_Thread(tMma *env) {
// Запуск устройства
Mma_InitStage(env);
bool result;
for (;;) {
GpioPinSet(&env->gpios->Led.ledR1, true);
@ -33,10 +35,20 @@ static _Noreturn void Mma_Thread(tMma *env) {
GpioPinSet(&env->gpios->Led.ledR1, false);
SystemDelayMs(1000);
uint16_t data = 0;
bool result = setSpiSensor(&env->sensorSPI, data);
/*
// result = setSpiSensor(&env->sensorSPI, SENSOR_TYPE_A, SENSOR_ADR_1, 3);
asm("nop");
// result = setSpiSensor(&env->sensorSPI, SENSOR_TYPE_A, SENSOR_ADR_2, 1);
asm("nop");
/*
GpioPinSet(&env->gpios->Led.ledR1, true);
SystemDelayMs(1000);
GpioPinSet(&env->gpios->Led.ledR1, false);