I'm trying to document my code and for some reason my example code is not showing up in the object browser window. Should my code show up when I do this?
Code:/// <summary> /// <para>The color sensor contains 4 sensors. (C)lear which does not contain a light filter, (R)ed, (G)reen, and (B)lue /// which contain filters. CRGB Returns an integer with each byte in the integer containing the level of each filter.</para> /// </summary> /// <returns>Returns Clear, Red, Green, and Blue contained in a 4 byte integer.</returns> /// <example> /// <code> /// public static void Main() /// { /// Colorimeter.ADJD_S371_Q999 myColorSensor = new ADJD_S371_Q999(); /// /// //Poll the sensor to update the levels /// myColorSensor.Poll; /// /// int rgb = myColorSensor.CRGB; /// int redMask = 0x00ff0000; /// int temp; /// byte level; /// /// //Mask the unused bytes /// temp = (rgb & redMask); /// /// //Shift the bytes so the red byte is in the least signifcant position /// level = (byte)(temp >> 16); /// } /// </code> /// </example>




Reply With Quote