Pseudorandom RTTY (170Hz, 45 baud) test has been added.

gpstest
roman 2023-11-13 01:23:32 +03:00
rodzic 0dde838aa8
commit 4ae1adbebc
1 zmienionych plików z 6 dodań i 2 usunięć

8
test.c
Wyświetl plik

@ -151,13 +151,17 @@ void RAM (SpinnerRTTYTest)(void)
uint32_t rndval = 77777777;
for(;;)
{
/* This example sets new PRN frequency every ~22 ms.
Note: You should use precise timing while building a real transmitter.
*/
PioDCOSetFreq(&DCO, GEN_FRQ_HZ - df*(rndval & 1));
/* LED signal */
gpio_put(PICO_DEFAULT_LED_PIN, 1);
sleep_ms(100);
sleep_ms(22);
gpio_put(PICO_DEFAULT_LED_PIN, 0);
sleep_ms(100);
sleep_ms(22);
PRN32(&rndval);
}