Files
pico-examples/pio/squarewave/squarewave.pio
graham sanderson 46078742c7 Initial Release
2021-01-20 16:45:01 -06:00

14 lines
316 B
Plaintext

;
; Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
;
; SPDX-License-Identifier: BSD-3-Clause
;
.program squarewave
set pindirs, 1 ; Set pin to output
again:
set pins, 1 [1] ; Drive pin high and then delay for one cycle
set pins, 0 ; Drive pin low
jmp again ; Set PC to label `again`