@@ -4,14 +4,15 @@ interface PiModel {
44 model : string ;
55 ram : string ;
66 manufacturer : string ;
7+ revision ?: string ;
78}
89
910// Define the type for the overall object using a mapped type
1011type RevisionsData = {
1112 [ key : string ] : PiModel ;
1213}
1314
14- /** @see https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes */
15+ /** @see https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes-in-use */
1516export const revisions : RevisionsData = {
1617 '900021' : { model : 'A+' , ram : '512MB' , manufacturer : 'Sony UK' } ,
1718 '900032' : { model : 'B+' , ram : '512MB' , manufacturer : 'Sony UK' } ,
@@ -56,7 +57,18 @@ export const revisions: RevisionsData = {
5657 'd03140' : { model : 'CM4' , ram : '8GB' , manufacturer : 'Sony UK' } ,
5758 '902120' : { model : 'Zero 2 W' , ram : '512MB' , manufacturer : 'Sony UK' } ,
5859 'c04170' : { model : '5' , ram : '4GB' , manufacturer : 'Sony UK' } ,
59- 'd04170' : { model : '5' , ram : '8GB' , manufacturer : 'Sony UK' }
60+ 'd04170' : { model : '5' , ram : '8GB' , manufacturer : 'Sony UK' } ,
61+ 'b04171' : { model : '5' , revision : '1.1' , ram : '2GB' , manufacturer : 'Sony UK' } ,
62+ 'c04171' : { model : '5' , revision : '1.1' , ram : '4GB' , manufacturer : 'Sony UK' } ,
63+ 'd04171' : { model : '5' , revision : '1.1' , ram : '8GB' , manufacturer : 'Sony UK' } ,
64+ 'e04171' : { model : '5' , revision : '1.1' , ram : '16GB' , manufacturer : 'Sony UK' } ,
65+ 'b04180' : { model : 'CM5' , revision : '1.0' , ram : '2GB' , manufacturer : 'Sony UK' } ,
66+ 'c04180' : { model : 'CM5' , revision : '1.0' , ram : '4GB' , manufacturer : 'Sony UK' } ,
67+ 'd04180' : { model : 'CM5' , revision : '1.0' , ram : '8GB' , manufacturer : 'Sony UK' } ,
68+ 'd04190' : { model : '500' , revision : '1.0' , ram : '8GB' , manufacturer : 'Sony UK' } ,
69+ 'b041a0' : { model : 'CM5 Lite' , revision : '1.0' , ram : '2GB' , manufacturer : 'Sony UK' } ,
70+ 'c041a0' : { model : 'CM5 Lite' , revision : '1.0' , ram : '4GB' , manufacturer : 'Sony UK' } ,
71+ 'd041a0' : { model : 'CM5 Lite' , revision : '1.0' , ram : '8GB' , manufacturer : 'Sony UK' } ,
6072} ;
6173export type RaspberryPiInfoResult = {
6274 isRaspberry : boolean ,
0 commit comments