Help with v5 Controller

I’m trying to figure out how to display on the v5 controller the speed at which my Flywheel is moving and Whether or not my Vision sensor senses a flag. Does anybody have a clue on how I can do this?

You can use the print command for vcs

See vex::controller::lcd.print