# W55RP20-EVB-PICO fast adc example # Read 800 samples and display as svg # Generates a Webserver and configures the PiPico W as accesspoint # # https://www.mikrocontroller.net/topic/574866?goto=7816655#7816655 # # 25-01-24 mchris # # To test, you can use your webbrowser # you have to find out the ip-address of the board first ( should be printed in the Micropython console on startup ) # # example: http://192.168.178.48/ # # 2025-03-11 mchris # # !! Use it at you own risk, no warraties, only for test purposes, no security implemented !! # from machine import Pin, WIZNET_PIO_SPI import network import socket import time import machine import json import fastadc spi = WIZNET_PIO_SPI(baudrate=31_250_000, mosi=Pin(23), miso=Pin(22), sck=Pin(21)) # W55RP20 PIO_SPI cs = machine.Pin(5, machine.Pin.OUT) # Initialize Ethernet (W5500) eth = network.WIZNET5K(spi, Pin(20), Pin(25)) # spi, cs, reset pin eth.active(True) # HTML content with the sine wave JavaScript logic (similar to your canvas) html = """