Radxa Zero SPI(0) MCP3008 or 3208

Does anyone have an example program to get an MCP 3008 working ?
Installed Debian 10 Buster


I found this. You may modified the parameters accordingly.
BTW, I found the code from https://learn.adafruit.com/raspberry-pi-analog-to-digital-converters/mcp3008 since to get an MCP 3008 working involves not merely a program. Hope it will help.

Hi. Have you managed to apply mcp to rock pi? Could you share the solution please?