Check engine light

today while I was riding I had the yellow check engine light and a yellow straight bar light (9:00 position on speedometer) come on. The Spedo dropped to 0 mph but I still had full power. Once I let off gas the lights went off and speedo started working.

Everything ran fine for the ride home but the check engine display came on the display. When I got back I shut it off and now can’t find error code. Any ideas on problem or how to retrieve error code?

2012 900xp