Skip to content

Commit 10e2795

Browse files
committed
fix: fix failing links
1 parent 7019638 commit 10e2795

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/chips-api/tutorial-7seg.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ chip->segment_pins[0] = pin_init("SEG_G", OUTPUT_HIGH);
100100

101101
The code initializes each of the segment pins as an output, and sets the initial value to digital high. The 7-segment
102102
display has a common annode, so setting a segment pin high will turn that segment off. You can learn more about the
103-
`pin_init` function in the [GPIO API reference](gpio.md).
103+
`pin_init` function in the [GPIO API reference](/docs/chips-api/gpio.md).
104104

105105
### Listening to UART data
106106
Add the following code to `chip_init`, right after the code that initializes the segment pins:
@@ -126,7 +126,7 @@ In our case, we are only interested in receiving data, so we set `.tx` to the sp
126126
127127
:::tip
128128
129-
To learn more about using UART in Wokwi, check out the [UART API reference](uart.md).
129+
To learn more about using UART in Wokwi, check out the [UART API reference](/docs/chips-api/uart.md).
130130
131131
:::
132132
@@ -237,18 +237,18 @@ tutorial:
237237
it a 'b'). Some bound checking can help!
238238
239239
- **Add support for common cathode 7-segment displays** <br/>
240-
You can use an additional input pin to select between common anode/cathode, or use the [Attributes API](attributes.md)
240+
You can use an additional input pin to select between common anode/cathode, or use the [Attributes API](/docs/chips-api/attributes.md)
241241
to allow the user to define the type of display by editing the chip attributes in `diagram.json`.
242242
243243
- **Add another communication protocol** <br/>
244-
You can turn our 7-segment display into an [I2C](i2c.md) or an [SPI](spi.md) device.
244+
You can turn our 7-segment display into an [I2C](/docs/chips-api/i2c.md) or an [SPI](/docs/chips-api/spi.md) device.
245245
246246
- **Support multiple digits** <br/>
247-
Control a two or four digital 7-segment display! Use the [Time API](time.md) to create a timer that will quickly
247+
Control a two or four digital 7-segment display! Use the [Time API](/docs/chips-api/time.md) to create a timer that will quickly
248248
alternate between the digits.
249249
250250
- **Add analog input** <br/>
251-
Use the [Analog API](analog.md) to read and display an analog input value. This makes the 7-segment controller chips
251+
Use the [Analog API](/docs/chips-api/analog.md) to read and display an analog input value. This makes the 7-segment controller chips
252252
useful even without a microcontroller - you can connect it directly to a potentiometer or an analog sensor, and
253253
display the reading directly.
254254

0 commit comments

Comments
 (0)