'How to plot and display data from a microcontroller in Bluefruit Connect?

I am using Adafruit ltsyBitsy nRF52840 to collect data by connecting some analog circuits with one of the pins. I plan to display and plot the data instantly using Bluefruit LE Connect. The problem is the app is designed to display the data from the sensors of the microcontroller which I am not supposed to use in my project and I am not sure what I should code in mu editor to make the app present the desired instant data graphically and numerically same as what the REPL of the editor did on the image. There are not many instructions or explanations I can find on the internet.

https://www.adafruit.com/product/4481 https://learn.adafruit.com/circuitpython-nrf52840/bluefruit-le-connect-basics

import time

import board

from analogio import AnalogIn

import digitalio

from adafruit_ble import BLERadio

from adafruit_ble.advertising.standard import 
ProvideServicesAdvertisement

from adafruit_ble.services.nordic import UARTService

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
ble = BLERadio()
print(ble.name)
uart = UARTService()
advertisement = ProvideServicesAdvertisement(uart)

ble.start_advertising(advertisement)
a1 = AnalogIn(board.A1)
def get_voltage(pin):
    return (pin.value * 3.3) / 65536
while True:
    led.value = True
    print((get_voltage(a1)))
    time.sleep(0.1)
    led.value = False
    time.sleep(0.1)

[REPL in mu editor][1]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source