Skip to content

Commit ef1c143

Browse files
authored
docs(chips-api/attributes): add examples (#214)
* Update attributes.md to add the Analog Chip Example * Update attributes.md -- Add Scope and PWM examples
1 parent 3ad0232 commit ef1c143

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/chips-api/attributes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ Returns the current value of the attribute. `attr` should be a valid attribute h
4343
### float attr_read_float(uint32_t attr)
4444

4545
Returns the current value of the attribute. `attr` should be a valid attribute handle, previously returned by `attr_init_float()`.
46+
47+
### Simulator Examples
48+
49+
- [Analog API chip example](https://wokwi.com/projects/330112801381024338) -- Simulates a 0-5V/0-ADC_MAX voltage source. One float attribute and one analog output.
50+
- [PWM with Scope](https://wokwi.com/projects/354488725362438145) ([github](https://github.com/Dlloydev/Wokwi-Chip-PWM)) -- simulates a PWM input with 1 digital output and three attributes
51+
- [Scope with PWM](https://wokwi.com/projects/354488725362438145) ([Scope with muliple inputs](https://wokwi.com/projects/359330496025635841)) ([github](https://github.com/Dlloydev/Wokwi-Chip-Scope)) -- Simulates a 4-channel oscilloscope with 4 digital inputs, 4 analog inputs and 4 attributes

0 commit comments

Comments
 (0)